code: def __init__(self):
      import metaflow.metaflow_config as config
  
      for typ in config.DEBUG_OPTIONS:
          if getattr(config, "DEBUG_%s" % typ.upper()):
              op = partial(self.log, typ)
          else:
              op = self.noop
          # use debug.$type_exec(args) to log command line for subprocesses
          # of type $type
          setattr(self, "%s_exec" % typ, op)
          # use the debug.$type flag to check if logging is enabled for $type
          setattr(self, typ, op != self.noop)
  
file_path: metaflow/metaflow/debug.py
imports: from __future__ import print_function
  import inspect
  import sys
  from functools import partial
  from .util import is_stringish
label_desc: Use image node_id 1 to create a new Debug object from inherited base classes: object with example: obj = Debug()