code: def get_databricks_function(func_name):
      import IPython
  
      ip_shell = IPython.get_ipython()
      if ip_shell is None:
          raise RuntimeError("No IPython environment.")
      return ip_shell.ns_table["user_global"][func_name]
  
file_path: ray/python/ray/util/spark/databricks_hook.py
imports: import os
  from .start_hook_base import RayOnSparkStartHook
  from .utils import get_spark_session
  import logging
  import threading
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: get_databricks_function(func_name) and returns: ip_shell