nodes: 0, module; 1, function_definition; 2, function_name:licenses; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, default_parameter; 13, dictionary_splat_pattern; 14, expression_statement; 15, expression_statement; 16, expression_statement; 17, return_statement; 18, identifier:query; 19, None; 20, identifier:offset; 21, None; 22, identifier:limit; 23, None; 24, identifier:sample; 25, None; 26, identifier:sort; 27, None; 28, identifier:order; 29, None; 30, identifier:facet; 31, None; 32, identifier:kwargs; 33, string:'''
          Search Crossref licenses
  
          :param query: [String] A query string
          :param offset: [Fixnum] Number of record to start at, from 1 to 10000
          :param limit: [Fixnum] Number of results to return. Not relevant when searching with specific dois. Default: 20. Max: 1000
          :param sort: [String] Field to sort on. Note: If the API call includes a query, then the sort
              order will be by the relevance score. If no query is included, then the sort order
              will be by DOI update date. See sorting_ for possible values.
          :param order: [String] Sort order, one of 'asc' or 'desc'
          :param facet: [Boolean/String] Set to `true` to include facet results (default: false).
              Optionally, pass a query string, e.g., `facet=type-name:*` or `facet=license=*`
              See Facets_ for options.
          :param kwargs: additional named arguments passed on to `requests.get`, e.g., field
              queries (see examples and FieldQueries_)
  
          :return: A dict
  
          Usage::
  
              from habanero import Crossref
              cr = Crossref()
              cr.licenses()
              cr.licenses(query = "creative")
          '''; 34, call; 35, assignment; 36, identifier:res; 37, identifier:check_kwargs; 38, argument_list; 39, identifier:res; 40, call; 41, list; 42, identifier:kwargs; 43, identifier:request; 44, argument_list; 45, string:"ids"; 46, string:"filter"; 47, string:"works"; 48, attribute; 49, attribute; 50, string:"/licenses/"; 51, None; 52, identifier:query; 53, None; 54, identifier:offset; 55, identifier:limit; 56, None; 57, identifier:sort; 58, identifier:order; 59, identifier:facet; 60, None; 61, None; 62, None; 63, None; 64, dictionary_splat; 65, identifier:self; 66, identifier:mailto; 67, identifier:self; 68, identifier:base_url; 69, identifier:kwargs
code: def licenses(self, query = None, offset = None,
                limit = None, sample = None, sort = None,
                order = None, facet = None, **kwargs):
          '''
          Search Crossref licenses
  
          :param query: [String] A query string
          :param offset: [Fixnum] Number of record to start at, from 1 to 10000
          :param limit: [Fixnum] Number of results to return. Not relevant when searching with specific dois. Default: 20. Max: 1000
          :param sort: [String] Field to sort on. Note: If the API call includes a query, then the sort
              order will be by the relevance score. If no query is included, then the sort order
              will be by DOI update date. See sorting_ for possible values.
          :param order: [String] Sort order, one of 'asc' or 'desc'
          :param facet: [Boolean/String] Set to `true` to include facet results (default: false).
              Optionally, pass a query string, e.g., `facet=type-name:*` or `facet=license=*`
              See Facets_ for options.
          :param kwargs: additional named arguments passed on to `requests.get`, e.g., field
              queries (see examples and FieldQueries_)
  
          :return: A dict
  
          Usage::
  
              from habanero import Crossref
              cr = Crossref()
              cr.licenses()
              cr.licenses(query = "creative")
          '''
          check_kwargs(["ids", "filter", "works"], kwargs)
          res = request(self.mailto, self.base_url, "/licenses/", None,
              query, None, offset, limit, None, sort,
              order, facet, None, None, None, None, **kwargs)
          return res