code: def get_comm_manager():
      if requires_ipykernel_shim():
          ip = get_ipython()
  
          if ip is not None and getattr(ip, "kernel", None) is not None:
              return get_ipython().kernel.comm_manager
      else:
          return comm.get_comm_manager()
  
imports: import sys
  from IPython import get_ipython
  import comm
label_desc: Use image node_id 2 for calling a global function with example usage: get_comm_manager() and returns: comm, get_ipython