code: def _search_sorted_values(draw):
      case = st.booleans()
      if case:
          # when x is 1-D and v is N-D
          dtype_x, x = draw(
              helpers.dtype_and_values(
                  available_dtypes=helpers.get_dtypes(
                      "numeric", full=False, key="searchsorted"
                  ),
                  shape=(draw(st.integers(min_value=1, max_value=5)),),
              ),
          )
          dtype_v, v = draw(
              helpers.dtype_and_values(
                  available_dtypes=helpers.get_dtypes(
                      "numeric", full=False, key="searchsorted"
                  ),
                  min_num_dims=1,
              )
          )
      else:
          # when x is N-D and v is N-D
          lead_dim = draw(
              helpers.get_shape(min_num_dims=1),
          )
          nx = draw(st.integers(min_value=1, max_value=5))
          nv = draw(st.integers(min_value=1, max_value=5))
          dtype_x, x = draw(
              helpers.dtype_and_values(
                  available_dtypes=helpers.get_dtypes(
                      "numeric", full=False, key="searchsorted"
                  ),
                  shape=lead_dim + (nx,),
              ),
          )
          dtype_v, v = draw(
              helpers.dtype_and_values(
                  available_dtypes=helpers.get_dtypes(
                      "numeric", full=False, key="searchsorted"
                  ),
                  shape=lead_dim + (nv,),
              ),
          )
      input_dtypes = dtype_x + dtype_v
      xs = x + v
      side = draw(st.sampled_from(["left", "right"]))
      use_sorter = draw(st.booleans())
      if use_sorter:
          sorter_dtype = draw(st.sampled_from(["int32", "int64"]))
          input_dtypes.append(sorter_dtype)
          sorter = np.argsort(xs[0], axis=-1).astype(sorter_dtype)
      else:
          sorter = None
          xs[0] = np.sort(xs[0], axis=-1)
      return input_dtypes, xs, side, sorter
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_sorting_searching_counting/test_searching.py
imports: import hypothesis.extra.numpy
  from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 3 for calling a global function with example usage: _search_sorted_values(draw) and returns: input_dtypes,  xs,  side,  sorter