code: def test_searchsorted_categorical(side):
      cat1 = pd.Categorical(
          ["a", "a", "b", "c", "a"],
          categories=["a", "b", "c"],
          ordered=True,
      )
      psr1 = pd.Series(cat1).sort_values()
      sr1 = cudf.Series(cat1).sort_values()
      cat2 = pd.Categorical(
          ["a", "b", "a", "c", "b"],
          categories=["a", "b", "c"],
          ordered=True,
      )
      psr2 = pd.Series(cat2)
      sr2 = cudf.Series(cat2)
  
      expect = psr1.searchsorted(psr2, side)
      got = sr1.searchsorted(sr2, side)
  
      assert_eq(expect, cupy.asnumpy(got))
  
file_path: cudf/python/cudf/cudf/tests/test_search.py
imports: import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq, gen_rand, random_bitmask
label_desc: Use image node_id 4 for calling a global function with example usage: test_searchsorted_categorical(side) without return types