class_docstr: Base nipype config class
class_docstr_tok: ["Base","nipype","config","class"]
code: def __init__(self, *args, **kwargs):
      self._config = configparser.ConfigParser()
      self._cwd = None
  
      config_dir = os.path.expanduser(
          os.getenv("NIPYPE_CONFIG_DIR", default="~/.nipype")
      )
      self.data_file = os.path.join(config_dir, "nipype.json")
  
      self.set_default_config()
      self._display = None
      self._resource_monitor = None
  
      self._config.read(
          [os.path.join(config_dir, "nipype.cfg"), "nipype.cfg"]
      )
  
      for option in CONFIG_DEPRECATIONS:
          for section in ["execution", "logging", "monitoring"]:
              if self.has_option(section, option):
                  new_section, new_option = CONFIG_DEPRECATIONS[option][
                      0
                  ].split(".")
                  if not self.has_option(new_section, new_option):
                      # Warn implicit in get
                      self.set(
                          new_section,
                          new_option,
                          self.get(section, option),
                      )
  
imports: import os
  import sys
  import errno
  import atexit
  from warnings import warn
  from looseversion import LooseVersion
  import configparser
  import numpy
  from simplejson import load, dump
  from .misc import str2bool
  from filelock import SoftFileLock
label_desc: Use image node_id 1 to create a new NipypeConfig object  with example: obj = NipypeConfig()