code: def read_object_from_yaml(desired_type: Type[Any], file_object: TextIOBase, logger: Logger,
                            fix_imports: bool = True, errors: str = 'strict', *args, **kwargs) -> Any:
      
      return yaml.load(file_object)
docs: Parses a yaml file.
  
      :param desired_type:
      :param file_object:
      :param logger:
      :param fix_imports:
      :param errors:
      :param args:
      :param kwargs:
      :return: