code: def is_interactive():
      import __main__ as main
  
      return not hasattr(main, "__file__")
  
imports: import contextlib
  import functools
  import operator
  import os
  import warnings
  import threading
  from copy import deepcopy
  from typing import Union, Dict
label_desc: Use image node_id 2 for calling a global function with example usage: is_interactive() and returns: unknown