code: def test_one_hot(
      dtype_indices_depth_axis,
      on_off_dtype,
      test_flags,
      backend_fw,
      fn_name,
      on_device,
  ):
      input_dtype, indices, depth, axis = dtype_indices_depth_axis
      on_value, off_value, dtype = on_off_dtype
      helpers.test_function(
          input_dtypes=input_dtype,
          test_flags=test_flags,
          on_device=on_device,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          indices=indices[0],
          depth=depth,
          on_value=on_value,
          off_value=off_value,
          axis=axis,
          dtype=dtype,
      )
  
imports: from hypothesis import strategies, assume
  import numpy
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
  import ivy_tests.test_ivy.helpers.globals
  from ivy_tests.test_ivy.test_functional.test_core.test_dtype import astype_helper
label_desc: Use image node_id 22 for calling a global function with example usage: test_one_hot(dtype_indices_depth_axis, on_off_dtype, test_flags, backend_fw, fn_name, on_device) without return types