code: def logger(path=None):
      name = "clearml"
      if path:
          p = Path(path)
          module = (p.parent if p.stem.startswith("_") else p).stem
          name = "clearml.%s" % module
      return logging.getLogger(name)
  
imports: import logging.config
  from copy import deepcopy
  from pathlib2 import Path
label_desc: Use image node_id 1 for calling a global function with example usage: logger(path) and returns: logging