docstr: Given a key present in the yaml, returns the corresponding section
  
  Parameters
  ----------
  key: str
      section of yaml file to be parsed
docstr_tok: ["Given","a","key","present","in","the","yaml",",","returns","the","corresponding","section","Parameters","--","--","--","--","--","key",":","str","section","of","yaml","file","to","be","parsed"]
code: def _parse_metrics_section(self, key="model_metrics") -> dict:
      """
      Given a key present in the yaml, returns the corresponding section
  
      Parameters
      ----------
      key: str
          section of yaml file to be parsed
      """
      try:
          val = self._parsed_file[key]
      except KeyError as err:
          raise merrors.MetricsCacheKeyError(
              f"'{key}' key not found in yaml file: {err}"
          )
      logging.debug(f"Successfully parsed {key} section of yaml file")
      return val
  
file_path: serve/ts/metrics/metric_cache_yaml_impl.py
imports: import logging
  import yaml
  import ts.metrics.metric_cache_errors
  from ts.metrics.caching_metric import CachingMetric
  from ts.metrics.metric_cache_abstract import MetricCacheAbstract
  from ts.metrics.metric_type_enum import MetricTypes
label_desc: Use image node_id 3 for calling the MetricsCacheYamlImpl obj's underlying member method code with example usage: obj._parse_metrics_section(key) and returns: val