code: def test_ndindex(dtype_x_shape):
      shape = dtype_x_shape[2]
      for index1, index2 in zip(np.ndindex(shape), ivy.ndindex(shape)):
          assert index1 == index2
  
imports: import pytest
  from hypothesis import strategies
  import numpy
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test
label_desc: Use image node_id 15 for calling a global function with example usage: test_ndindex(dtype_x_shape) without return types