code: def _set_device(device: str):
      global CURRENT_DEVICE, CURRENT_DEVICE_STRIPPED
      if (
          CURRENT_DEVICE is not _Notsetval
          or CURRENT_DEVICE_STRIPPED is not _Notsetval
      ):
          raise InterruptedTest(CURRENT_RUNNING_TEST)
      CURRENT_DEVICE = device
      CURRENT_DEVICE_STRIPPED = device.partition(":")[0]
  
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 9 for calling a global function with example usage: _set_device(device) without return types