code: def test_nanprod(
      *,
      dtype_x_axis_castable,
      keep_dims,
      test_flags,
      initial,
      backend_fw,
      fn_name,
      on_device,
  ):
      input_dtype, x, axis, castable_dtype = dtype_x_axis_castable
      x = x[0]
      helpers.test_function(
          input_dtypes=[input_dtype],
          test_flags=test_flags,
          rtol_=1e-1,
          atol_=1e-1,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          a=x,
          axis=axis,
          keepdims=keep_dims,
          dtype=castable_dtype,
          initial=initial,
      )
  
imports: from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test
  from ivy_tests.test_ivy.test_functional.test_core.test_statistical import _statistical_dtype_values, _get_castable_dtype
label_desc: Use image node_id 17 for calling a global function with example usage: test_nanprod() without return types