code: def flatten_yaml_as_dict(d, parent_key="", sep="."):
      items = []
      for k, v in d.items():
          new_key = parent_key + sep + k if parent_key else k
          if isinstance(v, collections_abc.MutableMapping):
              items.extend(
                  flatten_yaml_as_dict(v, new_key, sep=sep).items()
              )
          else:
              items.append((new_key, v))
      return dict(items)
  
file_path: ml-cvnets/options/utils.py
imports: import argparse
  import collections
  import os
  import re
  import yaml
  from options.errors import UnrecognizedYamlConfigEntry
  from utils import logger
  from utils.ddp_utils import is_master
  from utils.download_utils import get_local_path
label_desc: Use image node_id 1 for calling a global function with example usage: flatten_yaml_as_dict(d, parent_key, sep) and returns: dict