code: def _invert_permutation_helper(draw, for_frontend_test=False):
      perm = draw(
          st.permutations(
              list(range(draw(st.integers(min_value=3, max_value=10))))
          )
      )
      if for_frontend_test or draw(st.booleans()):
          perm = np.array(perm)
      dtype = draw(
          st.sampled_from(
              ["int32", "int64"] if not for_frontend_test else ["int64"]
          )
      )
      return dtype, perm
  
imports: from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test
label_desc: Use image node_id 1 for calling a global function with example usage: _invert_permutation_helper(draw, for_frontend_test) and returns: dtype,  perm