code: def _zero_dim_to_scalar_checks(x, ret_x):
      if len(x.shape) > 0:
          assert ivy.all(ivy.array(ret_x) == ivy.array(x))
      else:
          assert issubclass(type(ret_x), np_frontend.generic)
          assert ret_x.ivy_array == ivy.array(x)
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_func_wrapper.py
imports: from hypothesis import given, strategies
  import platform
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy.functional.frontends.numpy.func_wrapper import inputs_to_ivy_arrays, outputs_to_frontend_arrays, to_ivy_arrays_and_back, handle_numpy_dtype, from_zero_dim_arrays_to_scalar
  from ivy.functional.frontends.numpy.ndarray import ndarray
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _zero_dim_to_scalar_checks(x, ret_x) without return types