code: def test_autoscaling(
      printer: Callable,
      config: Dict,
      client: cx.Client,
      apis: Dict[str, Any],
  ):
      skip_autoscaling_test = config["global"].get(
          "skip_autoscaling", False
      )
      if skip_autoscaling_test:
          pytest.skip(
              "--skip-autoscaling flag detected, skipping autoscaling tests"
          )
  
      e2e.tests.test_autoscaling(
          printer,
          client,
          apis,
          autoscaling_config=config["global"][
              "autoscaling_test_config"
          ],
          deploy_timeout=config["global"]["realtime_deploy_timeout"],
          node_groups=config["aws"]["x86_nodegroups"],
      )
  
imports: from typing import Any, Callable, Dict
  import cortex
  import pytest
  import e2e.tests
label_desc: Use image node_id 1 for calling a global function with example usage: test_autoscaling(printer, config, client, apis) without return types