code: def device_instance2(request, device_data2):
      return chainerx.get_global_default_context().get_device(
          "native", device_data2["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 4 for calling a global function with example usage: device_instance2(request, device_data2) and returns: chainerx