code: def in_interactive():
      """Based on: https://stackoverflow.com/a/2356427/1565454"""
      return hasattr(sys, "ps1")
  
label_desc: Use image node_id 1 for calling a global function with example usage: in_interactive() and returns: hasattr