code: def test_matrix_power(
      *, dtype_x, n, test_flags, backend_fw, fn_name, on_device
  ):
      dtype, x = dtype_x
      assume(matrix_is_stable(x[0]))
      helpers.test_function(
          input_dtypes=dtype,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          rtol_=1e-1,
          atol_=1e-1,
          x=x[0],
          n=n,
      )
  
imports: import sys
  import numpy
  from hypothesis import assume, strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
  from ivy_tests.test_ivy.helpers.hypothesis_helpers.general_helpers import matrix_is_stable
label_desc: Use image node_id 21 for calling a global function with example usage: test_matrix_power() without return types