code: def generate_api_key(self):
          
          endpoint = '/'.join((self.server_url, '_api', 'v2', 'api_keys'))
          resp = self.r_session.post(endpoint)
          resp.raise_for_status()
          return response_to_json_dict(resp)
docs: Creates and returns a new API Key/pass pair.
  
          :returns: API key/pass pair in JSON format