code: def test_index_offset(arr, args, ret):
      assert m.index_at(arr, *args) == ret
      assert m.index_at_t(arr, *args) == ret
      assert m.offset_at(arr, *args) == ret * arr.dtype.itemsize
      assert m.offset_at_t(arr, *args) == ret * arr.dtype.itemsize
  
imports: import pytest
  import env
  from pybind11_tests import numpy_array
label_desc: Use image node_id 4 for calling a global function with example usage: test_index_offset(arr, args, ret) without return types