code: def test_simple_indexing():
      import numpy.array_api as np
  
      # simple 2d test
      arr = np.reshape(np.arange(5 * 7), (5, 7))
      ind = np.arange(7) % 5
      x = einindex("j <- i j, [i] j", arr, [ind])
      for j, i in enumerate(ind):
          assert arr[i, j] == x[j]
  
      y = einindex(
          "j <- j i, [i] j", np.permute_dims(arr, (1, 0)), [ind]
      )
      for j, i in enumerate(ind):
          assert arr[i, j] == y[j]
  
file_path: einops/einops/experimental/indexing.py
imports: from typing import List, Union, TypeVar, Tuple
  from einops import EinopsError
label_desc: Use image node_id 4 for calling a global function with example usage: test_simple_indexing() without return types