nodes: 0, module; 1, function_definition; 2, function_name:list; 3, parameters; 4, comment:# pylint: disable=invalid-name,redefined-builtin; 5, block; 6, identifier:self; 7, identifier:id; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, default_parameter; 13, expression_statement; 14, expression_statement; 15, expression_statement; 16, expression_statement; 17, return_statement; 18, identifier:filter; 19, None; 20, identifier:type; 21, None; 22, identifier:sort; 23, None; 24, identifier:limit; 25, None; 26, identifier:page; 27, None; 28, comment:"""Get a list of a device's attachments.
  
          :param id: Device ID as an int.
          :param filter: (optional) Filters to apply as a string list.
          :param type: (optional) `union` or `inter` as string.
          :param sort: (optional) Sort fields to apply as string list.
          :param limit: (optional) Limit returned list length.
          :param page: (optional) Page to return.
          :return: :class:`attachments.Page <attachments.Page>` object
          """; 29, assignment; 30, assignment; 31, assignment; 32, call; 33, identifier:schema; 34, call; 35, identifier:resp; 36, call; 37, pattern_list; 38, call; 39, identifier:Page; 40, argument_list; 41, identifier:AttachmentSchema; 42, argument_list; 43, attribute; 44, argument_list; 45, identifier:at; 46, identifier:l; 47, attribute; 48, argument_list; 49, identifier:at; 50, identifier:l; 51, keyword_argument; 52, attribute; 53, identifier:list; 54, call; 55, identifier:filter; 56, identifier:type; 57, identifier:sort; 58, identifier:limit; 59, identifier:page; 60, attribute; 61, identifier:decode; 62, identifier:schema; 63, identifier:resp; 64, keyword_argument; 65, keyword_argument; 66, identifier:exclude; 67, parenthesized_expression; 68, identifier:self; 69, identifier:service; 70, attribute; 71, argument_list; 72, identifier:self; 73, identifier:service; 74, identifier:many; 75, True; 76, identifier:links; 77, True; 78, string; 79, identifier:self; 80, identifier:_base; 81, identifier:id; 82, string_content:path
code: def list(self, id, filter=None, type=None, sort=None, limit=None, page=None): # pylint: disable=invalid-name,redefined-builtin
          """Get a list of a device's attachments.
  
          :param id: Device ID as an int.
          :param filter: (optional) Filters to apply as a string list.
          :param type: (optional) `union` or `inter` as string.
          :param sort: (optional) Sort fields to apply as string list.
          :param limit: (optional) Limit returned list length.
          :param page: (optional) Page to return.
          :return: :class:`attachments.Page <attachments.Page>` object
          """
          schema = AttachmentSchema(exclude=('path'))
          resp = self.service.list(self._base(id), filter, type, sort, limit, page)
          at, l = self.service.decode(schema, resp, many=True, links=True)
          return Page(at, l)