code: def validate_expectations(expectations):
      if "response" in expectations:
          validate_response_expectations(expectations["response"])
  
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 4 for calling a global function with example usage: validate_expectations(expectations) without return types