nodes: 0, module; 1, function_definition; 2, function_name:search; 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, default_parameter; 14, default_parameter; 15, expression_statement; 16, expression_statement; 17, return_statement; 18, identifier:page; 19, integer:0; 20, identifier:per_page; 21, integer:50; 22, identifier:sort; 23, None; 24, identifier:q; 25, None; 26, identifier:include_totals; 27, True; 28, identifier:fields; 29, None; 30, identifier:from_param; 31, None; 32, identifier:take; 33, None; 34, identifier:include_fields; 35, True; 36, comment:"""Search log events.
  
          Args:
              page (int, optional): The result's page number (zero based).
  
              per_page (int, optional): The amount of entries per page.
  
              sort (str, optional): The field to use for sorting.
                  1 == ascending and -1 == descending. (e.g: date:1)
  
              q (str, optional): Query in Lucene query string syntax.
  
              fields (list of str, optional): A list of fields to include or
                  exclude from the result (depending on include_fields). Empty to
                  retrieve all fields.
  
              include_fields (bool, optional): True if the fields specified are
                  to be included in the result, False otherwise.
  
              include_totals (bool, optional): True if the query summary is
                  to be included in the result, False otherwise.
  
              from_param (str, optional): Log Event Id to start retrieving logs. You can
                  limit the amount of logs using the take parameter
  
              take (int, optional): The total amount of entries to retrieve when
                  using the from parameter.
  
          https://auth0.com/docs/api/management/v2#!/Logs/get_logs
          """; 37, assignment; 38, call; 39, identifier:params; 40, dictionary; 41, attribute; 42, argument_list; 43, pair; 44, pair; 45, pair; 46, pair; 47, pair; 48, pair; 49, pair; 50, pair; 51, pair; 52, attribute; 53, identifier:get; 54, call; 55, keyword_argument; 56, string; 57, identifier:per_page; 58, string; 59, identifier:page; 60, string; 61, call; 62, string; 63, identifier:sort; 64, string; 65, boolean_operator; 66, string; 67, call; 68, string; 69, identifier:q; 70, string; 71, identifier:from_param; 72, string; 73, identifier:take; 74, identifier:self; 75, identifier:client; 76, attribute; 77, argument_list; 78, identifier:params; 79, identifier:params; 80, string_content:per_page; 81, string_content:page; 82, string_content:include_totals; 83, attribute; 84, argument_list; 85, string_content:sort; 86, string_content:fields; 87, boolean_operator; 88, None; 89, string_content:include_fields; 90, attribute; 91, argument_list; 92, string_content:q; 93, string_content:from; 94, string_content:take; 95, identifier:self; 96, identifier:_url; 97, call; 98, identifier:lower; 99, identifier:fields; 100, call; 101, call; 102, identifier:lower; 103, identifier:str; 104, argument_list; 105, attribute; 106, argument_list; 107, identifier:str; 108, argument_list; 109, identifier:include_totals; 110, string; 111, identifier:join; 112, identifier:fields; 113, identifier:include_fields; 114, string_content:,
code: def search(self, page=0, per_page=50, sort=None, q=None,
                 include_totals=True, fields=None, from_param=None, take=None,
                 include_fields=True):
          """Search log events.
  
          Args:
              page (int, optional): The result's page number (zero based).
  
              per_page (int, optional): The amount of entries per page.
  
              sort (str, optional): The field to use for sorting.
                  1 == ascending and -1 == descending. (e.g: date:1)
  
              q (str, optional): Query in Lucene query string syntax.
  
              fields (list of str, optional): A list of fields to include or
                  exclude from the result (depending on include_fields). Empty to
                  retrieve all fields.
  
              include_fields (bool, optional): True if the fields specified are
                  to be included in the result, False otherwise.
  
              include_totals (bool, optional): True if the query summary is
                  to be included in the result, False otherwise.
  
              from_param (str, optional): Log Event Id to start retrieving logs. You can
                  limit the amount of logs using the take parameter
  
              take (int, optional): The total amount of entries to retrieve when
                  using the from parameter.
  
          https://auth0.com/docs/api/management/v2#!/Logs/get_logs
          """
          params = {
              'per_page': per_page,
              'page': page,
              'include_totals': str(include_totals).lower(),
              'sort': sort,
              'fields': fields and ','.join(fields) or None,
              'include_fields': str(include_fields).lower(),
              'q': q,
              'from': from_param,
              'take': take
          }
          return self.client.get(self._url(), params=params)