code: def embedded_active(self):
      return (
          self._call_location_id
          not in InteractiveShellEmbed._inactive_locations
      ) and (
          self._init_location_id
          not in InteractiveShellEmbed._inactive_locations
      )
  
imports: import sys
  import warnings
  from IPython.core import ultratb, compilerop
  from IPython.core import magic_arguments
  from IPython.core.magic import Magics, magics_class, line_magic
  from IPython.core.interactiveshell import DummyMod, InteractiveShell
  from IPython.terminal.interactiveshell import TerminalInteractiveShell
  from IPython.terminal.ipapp import load_default_config
  from traitlets import Bool, CBool, Unicode
  from IPython.utils.io import ask_yes_no
  from typing import Set
label_desc: Use image node_id 2 for calling the InteractiveShellEmbed obj's underlying member method code with example usage: obj.embedded_active() and returns: unknown