code: def test_numpy_asmatrix(arr, backend_fw):
      with BackendHandler.update_backend(backend_fw) as ivy_backend:
          dtype, x = arr
          ret = np_frontend.asmatrix(x[0])
          ret_gt = np.asmatrix(x[0])
          assert ret.shape == ret_gt.shape
          assert ivy_backend.all(
              ivy_backend.flatten(ret._data) == np.ravel(ret_gt)
          )
  
imports: import numpy
  import ivy.functional.frontends.numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test, BackendHandler
label_desc: Use image node_id 1 for calling a global function with example usage: test_numpy_asmatrix(arr, backend_fw) without return types