code: def save_attrdict_to_disk(cfg: AttrDict):
      from vissl.utils.checkpoint import get_checkpoint_folder
  
      yaml_output_file = (
          f"{get_checkpoint_folder(cfg)}/train_config.yaml"
      )
      save_file(cfg.to_dict(), yaml_output_file)
  
imports: import contextlib
  import copy
  import logging
  import math
  import os
  import pprint
  import re
  import sys
  from typing import Any, List, NamedTuple, Tuple
  import torch
  from hydra.core.override_parser.overrides_parser import OverridesParser
  from omegaconf import DictConfig, OmegaConf, open_dict
  from vissl.config import AttrDict, check_cfg_version
  from vissl.utils.io import save_file
  from vissl.utils.misc import is_augly_available
label_desc: Use image node_id 1 for calling a global function with example usage: save_attrdict_to_disk(cfg) without return types