code: def authorize(
      creds: credentials.Credentials, env: ipython_env.IPythonEnv | None
  ) -> None:
      """Sets up credential for gspreads."""
      global _gspread_client
      if gspread is not None:
          client = gspread.authorize(creds)  # type: ignore
          _gspread_client = GSpreadClientImpl(client=client, env=env)
      else:
          _gspread_client = NullGSpreadClient()
  
imports: from __future__ import annotations
  import abc
  import datetime
  from typing import Any, Callable, Mapping, Sequence
  from google.auth import credentials
  from google.generativeai.notebook import html_utils
  from google.generativeai.notebook import ipython_env
  from google.generativeai.notebook import sheets_id
label_desc: Use image node_id 2 for calling a global function with example usage: authorize(creds, env) without return types