code: def pytest_configure(config):
      load_dotenv(".env")
  
      s3_path = os.environ.get("CORTEX_TEST_BATCH_S3_PATH")
      s3_path = (
          config.getoption("--s3-path") if not s3_path else s3_path
      )
  
      arm_nodegroups = []
      if config.getoption("--arm-nodegroups"):
          arm_nodegroups = config.getoption("--arm-nodegroups").split(
              ","
          )
  
      x86_nodegroups = []
      if config.getoption("--x86-nodegroups"):
          x86_nodegroups = config.getoption("--x86-nodegroups").split(
              ","
          )
  
      configuration = {
          "aws": {
              "env": config.getoption("--env"),
              "config": config.getoption("--config"),
              "s3_path": s3_path,
              "arm_nodegroups": arm_nodegroups,
              "x86_nodegroups": x86_nodegroups,
          },
          "global": {
              "local_operator": config.getoption("--local-operator"),
              "realtime_deploy_timeout": int(
                  os.environ.get(
                      "CORTEX_TEST_REALTIME_DEPLOY_TIMEOUT", 320
                  )
              ),
              "batch_deploy_timeout": int(
                  os.environ.get(
                      "CORTEX_TEST_BATCH_DEPLOY_TIMEOUT", 150
                  )
              ),
              "batch_job_timeout": int(
                  os.environ.get("CORTEX_TEST_BATCH_JOB_TIMEOUT", 200)
              ),
              "async_deploy_timeout": int(
                  os.environ.get(
                      "CORTEX_TEST_ASYNC_DEPLOY_TIMEOUT", 320
                  )
              ),
              "async_workload_timeout": int(
                  os.environ.get(
                      "CORTEX_TEST_ASYNC_WORKLOAD_TIMEOUT", 200
                  )
              ),
              "task_deploy_timeout": int(
                  os.environ.get("CORTEX_TEST_TASK_DEPLOY_TIMEOUT", 75)
              ),
              "task_job_timeout": int(
                  os.environ.get("CORTEX_TEST_TASK_JOB_TIMEOUT", 200)
              ),
              "skip_gpus": config.getoption("--skip-gpus"),
              "skip_infs": config.getoption("--skip-infs"),
              "skip_autoscaling": config.getoption(
                  "--skip-autoscaling"
              ),
              "skip_long_running": config.getoption(
                  "--skip-long-running"
              ),
              "skip_load": config.getoption("--skip-load"),
              "autoscaling_test_config": {
                  "max_replicas": 20,
              },
              "load_test_config": {
                  "realtime": {
                      "total_requests": 10**5,
                      "desired_replicas": 50,
                      "concurrency": 50,
                      "status_code_timeout": 60,  # measured in seconds
                  },
                  "async": {
                      "total_requests": 10**3,
                      "desired_replicas": 20,
                      "concurrency": 10,
                      "submit_timeout": 120,  # measured in seconds
                      "workload_timeout": 120,  # measured in seconds
                  },
                  "batch": {
                      "jobs": 10,
                      "workers_per_job": 10,
                      "items_per_job": 10**5,
                      "batch_size": 10 * 2,
                      "workload_timeout": 300,  # measured in seconds
                  },
              },
              "long_running_test_config": {
                  "time_to_run": 5 * 24 * 3600,  # measured in seconds
                  "status_code_timeout": 60,  # measured in seconds
              },
          },
      }
  
      class Config:
          @pytest.fixture(autouse=True)
          def config(self):
              return configuration
  
      config.pluginmanager.register(Config())
  
      print("\n----- Test Configuration -----\n")
      print(yaml.dump(configuration, indent=2))
  
      if configuration["aws"]["env"] and configuration["aws"]["config"]:
          raise ValueError("--env and --config are mutually exclusive")
  
imports: import os
  import pytest
  import yaml
  from dotenv import load_dotenv
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_configure(config) and returns: configuration