docstr: Generate a new api key.
  
  Returns:
      The new api key, or None on failure
docstr_tok: ["Generate","a","new","api","key",".","Returns",":","The","new","api","key",",","or","None","on","failure"]
code: def generate_api_key(self, description=None):
      """Generate a new api key.
  
      Returns:
          The new api key, or None on failure
      """
      try:
          # We must make this call using credentials from the original user
          key = self.user_api.client.execute(
              self.GENERATE_API_KEY_MUTATION,
              {"description": description},
          )["generateApiKey"]["apiKey"]
          self._attrs["apiKeys"]["edges"].append({"node": key})
          return key["name"]
      except (requests.exceptions.HTTPError, AttributeError):
          return None
  
file_path: wandb/wandb/apis/public/users.py
imports: import requests
  from wandb_gql import gql
  import wandb
  from wandb.apis.attrs import Attrs
label_desc: Use image node_id 7 for calling the User obj's underlying member method code with example usage: obj.generate_api_key(description) and returns: key, None