code: def set_out_dir(out_dir, fname):
      r"""
      Create the directory for full experiment run
  
      Args:
          out_dir (string): Directory for output, specified in :obj:`cfg.out_dir`
          fname (string): Filename for the yaml format configuration file
  
      """
      fname = get_fname(fname)
      cfg.out_dir = os.path.join(out_dir, fname)
      # Make output directory
      if cfg.train.auto_resume:
          os.makedirs(cfg.out_dir, exist_ok=True)
      else:
          makedirs_rm_exist(cfg.out_dir)
  
file_path: GraphGym/graphgym/config.py
imports: import functools
  import inspect
  import logging
  import os
  import shutil
  from collections.abc import Iterable
  from dataclasses import asdict
  from typing import Any
  from yacs.config import CfgNode
  import graphgym.register
  import graphgym.contrib.config
label_desc: Use image node_id 7 for calling a global function with example usage: set_out_dir(out_dir, fname) without return types