code: def _read_yaml(filename):
      import re
  
      import yaml
  
      loader = yaml.SafeLoader
      loader.add_implicit_resolver(
          "tag:yaml.org,2002:float",
          re.compile(
              """^(?:
          [-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+]?[0-9]+)?
          |[-+]?(?:[0-9][0-9_]*)(?:[eE][-+]?[0-9]+)
          |\\.[0-9_]+(?:[eE][-+][0-9]+)?
          |[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*
          |[-+]?\\.(?:inf|Inf|INF)
          |\\.(?:nan|NaN|NAN))$""",
              re.X,
          ),
          list("-+0123456789."),
      )
      with open(filename) as file:
          config = yaml.load(file, loader)
      return config
  
imports: import os
  import re
  from dataclasses import MISSING, dataclass, field
  from typing import Any, Dict, Iterable, List, Optional
  from omegaconf import OmegaConf
  from pytorch_tabular.models.common import heads
  from pytorch_tabular.utils import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: _read_yaml(filename) and returns: config