code: def test_astype(
      *,
      dtype_and_x_and_cast_dtype,
      test_flags,
      backend_fw,
      fn_name,
      on_device,
  ):
      input_dtype, x, cast_dtype = dtype_and_x_and_cast_dtype
      helpers.test_function(
          input_dtypes=input_dtype,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          rtol_=1e-3,
          atol_=1e-3,
          x=x[0],
          dtype=cast_dtype[0],
      )
  
imports: import numpy
  from hypothesis import strategies
  import typing
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
label_desc: Use image node_id 10 for calling a global function with example usage: test_astype() without return types