code: def type_of_script():
      try:
          ipy_str = str(type(get_ipython()))
          if "zmqshell" in ipy_str:
              return "jupyter"
          if "terminal" in ipy_str:
              return "ipython"
      except:
          return "terminal"
  
imports: import yaml
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: type_of_script() and returns: str, str, str