code: def load_configs(configs_path):
      try:
          if configs_path:
              with open(configs_path, "r") as stream:
                  # recommended for loading untrusted input.
                  configs_fromfile = yaml.load(
                      stream, Loader=yaml.SafeLoader
                  )
                  # currently (PyYAML 5.1) FullLoader is default loader called by
                  # yaml.load(input) (after issuing the warning)
                  # configs_fromfile = yaml.load(stream, Loader=yaml.FullLoader)
          else:
              configs_fromfile = {}
      except FileNotFoundError:
          logging.error(
              "**Could not find configurations! Please set path to configs.yaml file using --config"
          )
          print(configs_path)
          print(os.getcwd())
          exit(1)
      return Configs(**configs_fromfile)
  
imports: import logging
  import os
  import yaml
label_desc: Use image node_id 2 for calling the Configs obj's underlying member method code with example usage: obj.load_configs(configs_path) and returns: Configs