code: def load_yaml(config_fname: str) -> dict:
      """Load in YAML config file."""
      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(config_fname) as file:
          yaml_config = yaml.load(file, Loader=loader)
      return yaml_config
  
file_path: evojax/scripts/benchmarks/problems.py
imports: import ast
  import re
  import yaml
  import json
  import numpy
  from evojax.policy import MLPPolicy
  from evojax.policy.convnet import ConvNetPolicy
label_desc: Use image node_id 9 for calling a global function with example usage: load_yaml(config_fname) and returns: yaml_config