code: def test_searchsorted(
      *,
      data,
      dtypes_and_xs,
      side,
      use_sorter,
      ret_dtype,
      test_flags,
      backend_fw,
      fn_name,
      on_device,
  ):
      dtypes, xs = dtypes_and_xs
      if use_sorter:
          sorter_dtype = data.draw(
              helpers.get_dtypes("signed_integer", full=False)
          )
          dtypes += sorter_dtype
          sorter = np.argsort(xs[0]).astype(sorter_dtype[0])
      else:
          sorter = None
          xs[0] = np.sort(xs[0])
      helpers.test_function(
          input_dtypes=dtypes,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          x=xs[0],
          v=xs[1],
          side=side,
          sorter=sorter,
          ret_dtype=ret_dtype[0],
      )
  
file_path: ivy/ivy_tests/test_ivy/test_functional/test_core/test_sorting.py
imports: from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test
label_desc: Use image node_id 5 for calling a global function with example usage: test_searchsorted() without return types