nodes: 0, module; 1, function_definition; 2, function_name:get_datasets; 3, parameters; 4, comment:# type: (str, Any) -> List[hdx.data.dataset.Dataset]; 5, block; 6, identifier:self; 7, default_parameter; 8, dictionary_splat_pattern; 9, expression_statement; 10, return_statement; 11, identifier:query; 12, string; 13, identifier:kwargs; 14, comment:"""Get list of datasets in organization
  
          Args:
              query (str): Restrict datasets returned to this query (in Solr format). Defaults to '*:*'.
              **kwargs: See below
              sort (string): Sorting of the search results. Defaults to 'relevance asc, metadata_modified desc'.
              rows (int): Number of matching rows to return. Defaults to all datasets (sys.maxsize).
              start (int): Offset in the complete result for where the set of returned datasets should begin
              facet (string): Whether to enable faceted results. Default to True.
              facet.mincount (int): Minimum counts for facet fields should be included in the results
              facet.limit (int): Maximum number of values the facet fields return (- = unlimited). Defaults to 50.
              facet.field (List[str]): Fields to facet upon. Default is empty.
              use_default_schema (bool): Use default package schema instead of custom schema. Defaults to False.
  
          Returns:
              List[Dataset]: List of datasets in organization
          """; 15, call; 16, string_content:*:*; 17, attribute; 18, argument_list; 19, attribute; 20, identifier:search_in_hdx; 21, keyword_argument; 22, keyword_argument; 23, keyword_argument; 24, dictionary_splat; 25, attribute; 26, identifier:Dataset; 27, identifier:query; 28, identifier:query; 29, identifier:configuration; 30, attribute; 31, identifier:fq; 32, binary_operator:'organization:%s' % self.data['name']; 33, identifier:kwargs; 34, attribute; 35, identifier:dataset; 36, identifier:self; 37, identifier:configuration; 38, string; 39, subscript; 40, identifier:hdx; 41, identifier:data; 42, string_content:organization:%s; 43, attribute; 44, string; 45, identifier:self; 46, identifier:data; 47, string_content:name
code: def get_datasets(self, query='*:*', **kwargs):
          # type: (str, Any) -> List[hdx.data.dataset.Dataset]
          """Get list of datasets in organization
  
          Args:
              query (str): Restrict datasets returned to this query (in Solr format). Defaults to '*:*'.
              **kwargs: See below
              sort (string): Sorting of the search results. Defaults to 'relevance asc, metadata_modified desc'.
              rows (int): Number of matching rows to return. Defaults to all datasets (sys.maxsize).
              start (int): Offset in the complete result for where the set of returned datasets should begin
              facet (string): Whether to enable faceted results. Default to True.
              facet.mincount (int): Minimum counts for facet fields should be included in the results
              facet.limit (int): Maximum number of values the facet fields return (- = unlimited). Defaults to 50.
              facet.field (List[str]): Fields to facet upon. Default is empty.
              use_default_schema (bool): Use default package schema instead of custom schema. Defaults to False.
  
          Returns:
              List[Dataset]: List of datasets in organization
          """
          return hdx.data.dataset.Dataset.search_in_hdx(query=query,
                                                        configuration=self.configuration,
                                                        fq='organization:%s' % self.data['name'], **kwargs)