code: def pd_str_cat():
      categories = list("abc")
      codes = [0, 0, 1, 0, 1, 2, 0, 1, 1, 2]
      return pd.Categorical.from_codes(codes, categories=categories)
  
imports: import operator
  import string
  import warnings
  from contextlib import contextmanager
  from textwrap import dedent
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_134
  from cudf.testing._utils import NUMERIC_TYPES, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 3 for calling a global function with example usage: pd_str_cat() and returns: pd