code: def check_dlpack_export(arr, expected_arr):
      DLTensor = arr.__dlpack__()
      assert PyCapsule_IsValid(DLTensor, b"dltensor") is True
  
      result = np.from_dlpack(arr)
      np.testing.assert_array_equal(result, expected_arr, strict=True)
  
      assert arr.__dlpack_device__() == (1, 0)
  
file_path: arrow/python/pyarrow/tests/test_dlpack.py
imports: import ctypes
  from functools import wraps
  import pytest
  import numpy
  import pyarrow
  from pyarrow.vendored.version import Version
label_desc: Use image node_id 2 for calling a global function with example usage: check_dlpack_export(arr, expected_arr) without return types