code: def parse_expectations(expectations_file: str) -> Dict[str, Any]:
      with open(expectations_file) as f:
          expectations = yaml.safe_load(f)
  
      validate_expectations(expectations)
  
      return expectations
  
file_path: cortex/test/e2e/e2e/expectations.py
imports: import pathlib
  import types
  from typing import Dict, Any
  import jsonschema
  import requests
  import yaml
  from jsonschema import Draft7Validator
  from e2e.exceptions import ExpectationsValidationException
label_desc: Use image node_id 3 for calling a global function with example usage: parse_expectations(expectations_file) and returns: expectations