code: def _pad_helper(draw):
      mode = draw(
          st.sampled_from(
              [
                  "constant",
                  "reflect",
                  "replicate",
                  "circular",
              ]
          )
      )
      min_v = 1
      max_v = 5
      if mode != "constant":
          min_v = 3
          if mode == "reflect":
              max_v = 4
      dtype, input, shape = draw(
          helpers.dtype_and_values(
              available_dtypes=["float32", "float64"],
              ret_shape=True,
              min_num_dims=min_v,
              max_num_dims=max_v,
              min_dim_size=2,
              min_value=-1e05,
              max_value=1e05,
          )
      )
      padding = draw(_pad_generator(shape, mode))
      if mode == "constant":
          value = draw(helpers.ints(min_value=0, max_value=4))
      else:
          value = 0.0
      return dtype, input[0], padding, value, mode
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_vision_functions.py
imports: from hypothesis import assume, strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
  from ivy_tests.test_ivy.test_functional.test_experimental.test_nn.test_layers import _interp_args
label_desc: Use image node_id 3 for calling a global function with example usage: _pad_helper(draw) and returns: dtype,  input,  padding,  value,  mode