code: def test_cupy_to_chainerx_delete_chainerx_first():
      dtype = numpy.float32
      a_cupy = cupy.arange(6, dtype=dtype).reshape((2, 3))
      a_chx = _fromrawpointer(
          a_cupy.data.mem.ptr,
          a_cupy.shape,
          a_cupy.dtype,
          a_cupy.strides,
          "cuda:0",
          0,
          a_cupy,
      )
  
      del a_chx
  
      a_cupy += 1
      chainerx.testing.assert_array_equal_ex(
          a_cupy.get(), numpy.array([[1, 2, 3], [4, 5, 6]], dtype)
      )
  
file_path: chainer/tests/chainerx_tests/unit_tests/test_cupy_interop.py
imports: import numpy
  import pytest
  import sys
  import chainerx
  import chainerx.testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_cupy_to_chainerx_delete_chainerx_first() without return types