code: def device_instance1(request, device_data1):
      return chainerx.get_global_default_context().get_device(
          "native", device_data1["index"]
      )
  
file_path: chainer/tests/chainerx_tests/unit_tests/test_device.py
imports: import copy
  import pickle
  import pytest
  import chainerx
label_desc: Use image node_id 3 for calling a global function with example usage: device_instance1(request, device_data1) and returns: chainerx