code: def _load_config(self, path):
          
          try:
              with open(path) as f:
                  values = yaml.safe_load(f)
                  if isinstance(values, dict):
                      return values
                  else:
                      raise yaml.YAMLError('Unable to parse/load {}'.format(path))
          except(IOError, yaml.YAMLError) as e:
              if self.ignore_errors:
                  return None
              else:
                  raise e
docs: Return YAML values from given config file.
  
          @param path file to load