code: def get_output_dir(imdb, net=None):
      """Return the directory where experimental artifacts are placed.
      If the directory does not exist, it is created.
  
      A canonical path is built using the name from an imdb and a network
      (if not None).
      """
      outdir = osp.abspath(
          osp.join(__C.ROOT_DIR, "output", __C.EXP_DIR, imdb.name)
      )
      if net is not None:
          outdir = osp.join(outdir, net.name)
      if not os.path.exists(outdir):
          os.makedirs(outdir)
      return outdir
  
imports: import os
  import os.path
  import numpy
  from easydict import EasyDict
label_desc: Use image node_id 1 for calling a global function with example usage: get_output_dir(imdb, net) and returns: outdir