code: def test_basic_assert_series_equal(
      rdata,
      rname,
      check_names,
      check_category_order,
      check_categorical,
      dtype,
  ):
      p_left = pd.Series([1, 2, 3], name="a", dtype=dtype)
      p_right = pd.Series(rdata, name=rname, dtype=dtype)
  
      left = cudf.from_pandas(p_left)
      right = cudf.from_pandas(p_right)
  
      kind = None
      try:
          pd.testing.assert_series_equal(
              p_left,
              p_right,
              check_names=check_names,
              check_categorical=check_categorical,
              check_category_order=check_category_order,
          )
      except BaseException as e:
          kind = type(e)
  
      if kind is not None:
          with pytest.raises(kind):
              assert_series_equal(
                  left,
                  right,
                  check_names=check_names,
                  check_categorical=check_categorical,
                  check_category_order=check_category_order,
              )
      else:
          assert_series_equal(
              left,
              right,
              check_names=check_names,
              check_categorical=check_categorical,
              check_category_order=check_category_order,
          )
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core.column.column import as_column, full
  from cudf.testing import assert_frame_equal, assert_index_equal, assert_series_equal
  from cudf.testing._utils import NUMERIC_TYPES, OTHER_TYPES, assert_column_memory_eq, assert_column_memory_ne, assert_eq
  from cudf.testing.testing import assert_column_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_basic_assert_series_equal(rdata, rname, check_names, check_category_order, check_categorical, dtype) without return types