code: def test_task_api(
      printer: Callable, config: Dict, client: cx.Client, api: str
  ):
      e2e.tests.test_task_api(
          printer,
          client,
          api,
          retry_attempts=5,
          deploy_timeout=config["global"]["task_deploy_timeout"],
          job_timeout=config["global"]["task_job_timeout"],
          node_groups=config["aws"]["x86_nodegroups"],
          local_operator=config["global"]["local_operator"],
      )
  
imports: from typing import 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_task_api(printer, config, client, api) without return types