code: def load_yaml_file(yaml_file):
      
      with io.open(yaml_file, 'r', encoding='utf-8') as stream:
          yaml_content = yaml.load(stream)
          _check_format(yaml_file, yaml_content)
          return yaml_content
docs: load yaml file and check file content format