nodes: 0, module; 1, function_definition; 2, function_name:get_log_events; 3, parameters; 4, block; 5, identifier:self; 6, identifier:user_id; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, return_statement; 15, identifier:page; 16, integer:0; 17, identifier:per_page; 18, integer:50; 19, identifier:sort; 20, None; 21, identifier:include_totals; 22, False; 23, comment:"""Retrieve every log event for a specific user id
  
          Args:
              user_id (str):  The user_id of the logs to retrieve
  
              page (int, optional): The result's page number (zero based).
  
              per_page (int, optional): The amount of entries per page.
                  Default: 50. Max value: 100
  
              sort (str, optional):  The field to use for sorting. Use field:order
                  where order is 1 for ascending and -1 for descending.
                  For example date:-1
  
              include_totals (bool, optional): True if the query summary is
                  to be included in the result, False otherwise.
  
              See: https://auth0.com/docs/api/management/v2#!/Users/get_logs_by_user
          """; 24, assignment; 25, assignment; 26, call; 27, identifier:params; 28, dictionary; 29, identifier:url; 30, call; 31, attribute; 32, argument_list; 33, pair; 34, pair; 35, pair; 36, pair; 37, attribute; 38, argument_list; 39, attribute; 40, identifier:get; 41, identifier:url; 42, keyword_argument; 43, string; 44, identifier:per_page; 45, string; 46, identifier:page; 47, string; 48, call; 49, string; 50, identifier:sort; 51, identifier:self; 52, identifier:_url; 53, call; 54, identifier:self; 55, identifier:client; 56, identifier:params; 57, identifier:params; 58, string_content:per_page; 59, string_content:page; 60, string_content:include_totals; 61, attribute; 62, argument_list; 63, string_content:sort; 64, attribute; 65, argument_list; 66, call; 67, identifier:lower; 68, string; 69, identifier:format; 70, identifier:user_id; 71, identifier:str; 72, argument_list; 73, string_content:{}/logs; 74, identifier:include_totals
code: def get_log_events(self, user_id, page=0, per_page=50, sort=None,
                         include_totals=False):
          """Retrieve every log event for a specific user id
  
          Args:
              user_id (str):  The user_id of the logs to retrieve
  
              page (int, optional): The result's page number (zero based).
  
              per_page (int, optional): The amount of entries per page.
                  Default: 50. Max value: 100
  
              sort (str, optional):  The field to use for sorting. Use field:order
                  where order is 1 for ascending and -1 for descending.
                  For example date:-1
  
              include_totals (bool, optional): True if the query summary is
                  to be included in the result, False otherwise.
  
              See: https://auth0.com/docs/api/management/v2#!/Users/get_logs_by_user
          """
  
          params = {
              'per_page': per_page,
              'page': page,
              'include_totals': str(include_totals).lower(),
              'sort': sort
          }
  
          url = self._url('{}/logs'.format(user_id))
          return self.client.get(url, params=params)