nodes: 0, module; 1, function_definition; 2, function_name:list_logdir; 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, expression_statement; 11, expression_statement; 12, expression_statement; 13, return_statement; 14, identifier:filter; 15, None; 16, identifier:sort; 17, None; 18, comment:"""Get a list of logdir files.
  
          :param id: Result ID as an int.
          :param filter: Filter to apply as string.
          :param sort: Sort field to apply as string.
          :return: :class:`results.LogDirFile <results.LogDirFile>` list
          """; 19, assignment; 20, assignment; 21, call; 22, identifier:schema; 23, call; 24, identifier:resp; 25, call; 26, attribute; 27, argument_list; 28, identifier:LogDirFileSchema; 29, argument_list; 30, attribute; 31, argument_list; 32, attribute; 33, identifier:decode; 34, identifier:schema; 35, identifier:resp; 36, keyword_argument; 37, attribute; 38, identifier:list; 39, binary_operator:self.base+str(id)+'/logdir/'; 40, identifier:filter; 41, identifier:sort; 42, identifier:self; 43, identifier:service; 44, identifier:many; 45, True; 46, identifier:self; 47, identifier:service; 48, binary_operator:self.base+str(id); 49, string; 50, attribute; 51, call; 52, string_content:/logdir/; 53, identifier:self; 54, identifier:base; 55, identifier:str; 56, argument_list; 57, identifier:id
code: def list_logdir(self, id, filter=None, sort=None): # pylint: disable=invalid-name,redefined-builtin
          """Get a list of logdir files.
  
          :param id: Result ID as an int.
          :param filter: Filter to apply as string.
          :param sort: Sort field to apply as string.
          :return: :class:`results.LogDirFile <results.LogDirFile>` list
          """
          schema = LogDirFileSchema()
          resp = self.service.list(self.base+str(id)+'/logdir/', filter, sort)
          return self.service.decode(schema, resp, many=True)