code: def _get_ipython_env() -> ipython_env.IPythonEnv:
      """Lazily constructs and returns a global IPythonEnv instance."""
      global _ipython_env
      if _ipython_env is None:
          _ipython_env = ipython_env_impl.IPythonEnvImpl()
      return _ipython_env
  
imports: from __future__ import annotations
  import abc
  from google.auth import credentials
  from google.generativeai import client
  from google.generativeai.notebook import gspread_client
  from google.generativeai.notebook import ipython_env
  from google.generativeai.notebook import ipython_env_impl
  from google.generativeai.notebook import magics_engine
  from google.generativeai.notebook import post_process_utils
  from google.generativeai.notebook import sheets_utils
  import IPython
  from IPython.core import magic
label_desc: Use image node_id 1 for calling a global function with example usage: _get_ipython_env() and returns: _ipython_env