code: def set_out_dir(out_dir, fname):
      r"""Create the directory for full experiment run.
  
      Args:
          out_dir (str): Directory for output, specified in :obj:`cfg.out_dir`
          fname (str): Filename for the yaml format configuration file
      """
      fname = get_fname(fname)
      cfg.out_dir = osp.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: pytorch_geometric/torch_geometric/graphgym/config.py
imports: import functools
  import inspect
  import logging
  import os
  import os.path
  import warnings
  from collections.abc import Iterable
  from dataclasses import asdict
  from typing import Any
  import torch_geometric.graphgym.register
  from torch_geometric.io import fs
label_desc: Use image node_id 7 for calling a global function with example usage: set_out_dir(out_dir, fname) without return types