code: def test_invert_permutation(
      dtype_and_perm, test_flags, backend_fw, fn_name, on_device
  ):
      dtype, perm = dtype_and_perm
      helpers.test_function(
          input_dtypes=[dtype],
          test_flags=test_flags,
          on_device=on_device,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          x=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 2 for calling a global function with example usage: test_invert_permutation(dtype_and_perm, test_flags, backend_fw, fn_name, on_device) without return types