code: def test_creation():
      ctx = chainerx.get_global_default_context()
      backend = ctx.get_backend("native")
      device = backend.get_device(0)
      assert device.name == "native:0"
      assert device.backend is backend
      assert device.context is ctx
      assert device.index == 0
  
      device = backend.get_device(1)
      assert device.name == "native:1"
      assert device.backend is backend
      assert device.context is ctx
      assert device.index == 1
  
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 6 for calling a global function with example usage: test_creation() without return types