code: def test_jax_pad(
      *,
      dtype_and_input_and_other,
      frontend,
      backend_fw,
      test_flags,
      fn_tree,
      on_device,
  ):
      (
          dtype,
          input,
          pad_width,
          kwargs,
          mode,
      ) = dtype_and_input_and_other
  
      if isinstance(pad_width, int):
          pad_width = ((pad_width, pad_width),) * input.ndim
      else:
          pad_width = tuple(
              tuple(pair) if isinstance(pair, list) else pair
              for pair in pad_width
          )
  
      helpers.test_frontend_function(
          input_dtypes=dtype,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          array=input,
          pad_width=pad_width,
          mode=mode,
          **kwargs,
      )
  
imports: from hypothesis import strategies, assume
  import numpy
  import hypothesis.extra.numpy
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
  import ivy_tests.test_ivy.test_frontends.test_numpy.helpers
  from ivy_tests.test_ivy.test_functional.test_core.test_manipulation import _repeat_helper
  from ivy_tests.test_ivy.test_functional.test_experimental.test_core.test_manipulation import _get_dtype_values_k_axes_for_rot90, _get_splits, _st_tuples_or_int
label_desc: Use image node_id 36 for calling a global function with example usage: test_jax_pad() without return types