code: def test_inverse_indices_shape(func, x):
      """
      Inverse indices share shape of input array
  
      See https://github.com/numpy/numpy/issues/20638
      """
      out = func(x)
      assert out.inverse_indices.shape == x.shape
  
imports: import pytest
  from hypothesis import given
  from hypothesis.extra.array_api import make_strategies_namespace
  from numpy import array_api
label_desc: Use image node_id 1 for calling a global function with example usage: test_inverse_indices_shape(func, x) without return types