code: def test_numpy_asscalar(arr: np.ndarray):
      ret_1 = arr.item()
      ret_2 = np_frontend.asscalar(arr)
      assert ret_1 == ret_2
  
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 2 for calling a global function with example usage: test_numpy_asscalar(arr) without return types