code: def test_load_batch(
      printer: Callable, config: Dict, client: cx.Client, api: str
  ):
      skip_load_test = config["global"].get("skip_load", False)
      if skip_load_test:
          pytest.skip("--skip-load flag detected, skipping load tests")
  
      s3_path = config["aws"].get("s3_path")
      if not s3_path:
          pytest.skip(
              "--s3-path option is required to run batch tests (alternatively set the "
              "CORTEX_TEST_BATCH_S3_PATH env var) )"
          )
  
      e2e.tests.test_load_batch(
          printer,
          client,
          api,
          test_s3_path=s3_path,
          load_config=config["global"]["load_test_config"]["batch"],
          deploy_timeout=config["global"]["batch_deploy_timeout"],
          node_groups=config["aws"]["x86_nodegroups"],
      )
  
imports: from typing import Callable, Dict
  import cortex
  import pytest
  import e2e.tests
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_batch(printer, config, client, api) without return types