code: def test_numpy_matrix_any(
      dtype_x_axis,
      to_str,
      init_flags,
      method_flags,
      backend_fw,
      frontend_method_data,
      frontend,
      on_device,
  ):
      input_dtype, x, axis = dtype_x_axis
      x = _get_x_matrix(x, to_str)
      if isinstance(axis, tuple):
          axis = axis[0]
      helpers.test_frontend_method(
          init_input_dtypes=input_dtype,
          backend_to_test=backend_fw,
          init_flags=init_flags,
          method_flags=method_flags,
          init_all_as_kwargs_np={
              "data": x,
              "dtype": input_dtype[0],
          },
          method_input_dtypes=[],
          method_all_as_kwargs_np={
              "axis": axis,
          },
          frontend=frontend,
          frontend_method_data=frontend_method_data,
          on_device=on_device,
      )
  
imports: from hypothesis import assume, strategies
  import numpy
  import sys
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_method, handle_frontend_test
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 10 for calling a global function with example usage: test_numpy_matrix_any(dtype_x_axis, to_str, init_flags, method_flags, backend_fw, frontend_method_data, frontend, on_device) without return types