code: def is_in_interactive_console():
      if hasattr(sys, "ps1"):
          return True
  
      return False
  
imports: import itertools
  import logging
  import multiprocessing.util
  import os
  import re
  import sys
  import socket
  import threading
  import weakref
  import psutil
label_desc: Use image node_id 5 for calling a global function with example usage: is_in_interactive_console() and returns: False, True