code: def assert_json_expectations(
      response_json: Dict[str, Any], expectations: Dict[str, Any]
  ):
      expected_json_schema = expectations.get("json_schema")
      if expected_json_schema:
          jsonschema.validate(
              response_json, schema=expected_json_schema
          )
  
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 2 for calling a global function with example usage: assert_json_expectations(response_json, expectations) without return types