code: def test_numpy_ptp(
      dtype_values_axis,
      frontend,
      backend_fw,
      test_flags,
      fn_tree,
      keep_dims,
  ):
      input_dtypes, values, axis = dtype_values_axis
      if isinstance(axis, tuple):
          axis = axis[0]
  
      helpers.test_frontend_function(
          a=values[0],
          axis=axis,
          out=None,
          keepdims=keep_dims,
          frontend=frontend,
          backend_to_test=backend_fw,
          fn_tree=fn_tree,
          test_flags=test_flags,
          input_dtypes=input_dtypes,
      )
  
imports: from hypothesis import strategies
  from ivy_tests.test_ivy.test_functional.test_core.test_statistical import _statistical_dtype_values
  import ivy_tests.test_ivy.helpers
  import ivy_tests.test_ivy.test_frontends.test_numpy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 2 for calling a global function with example usage: test_numpy_ptp(dtype_values_axis, frontend, backend_fw, test_flags, fn_tree, keep_dims) without return types