code: def is_ipynb():
      try:
          cfg = get_ipython().config
          if cfg["IPKernelApp"] is None:
              return False
  
          app: Dict = cfg["IPKernelApp"]
          if len(app.keys()) > 0:
              return True
          else:
              return False
      except NameError:
          return False
  
file_path: labml/client/labml/internal/util/__init__.py
imports: import pathlib
  import random
  import string
  from typing import Dict, Callable
  import yaml
label_desc: Use image node_id 5 for calling a global function with example usage: is_ipynb() and returns: False, True, False, False