code: def __init__(self, **kwargs):
      super(BaseIPythonApplication, self).__init__(**kwargs)
      # ensure current working directory exists
      try:
          py3compat.getcwd()
      except:
          # exit if cwd doesn't exist
          self.log.error("Current working directory doesn't exist.")
          self.exit(1)
  
imports: import atexit
  from copy import deepcopy
  import glob
  import logging
  import os
  import shutil
  import sys
  from traitlets.config.application import Application, catch_config_error
  from traitlets.config.loader import ConfigFileNotFound, PyFileConfigLoader
  from IPython.core import release, crashhandler
  from IPython.core.profiledir import ProfileDir, ProfileDirError
  from IPython.paths import get_ipython_dir, get_ipython_package_dir
  from IPython.utils.path import ensure_dir_exists
  from IPython.utils import py3compat
  from traitlets import List, Unicode, Type, Bool, Dict, Set, Instance, Undefined, default, observe
label_desc: Use image node_id 9 to create a new BaseIPythonApplication object from inherited base classes: Application with example: obj = BaseIPythonApplication()