code: def setup_api_test(
      backend: str,
      ground_truth_backend: str,
      device: str,
      test_data: TestData = None,
  ):
      if test_data is not None:
          _set_test_data(test_data)
      if ground_truth_backend is not None:
          _set_ground_truth_backend(ground_truth_backend)
      _set_backend(backend)
      _set_device(device)
  
file_path: ivy/ivy_tests/test_ivy/helpers/globals.py
imports: from dataclasses import dataclass
  from .pipeline_helper import get_frontend_config
label_desc: Use image node_id 1 for calling a global function with example usage: setup_api_test(backend, ground_truth_backend, device, test_data) without return types