code: def test_series_construction_with_nulls(input_obj, dtype):
      dtype = cudf.dtype(dtype)
      input_obj = [
          dtype.type(v) if v is not cudf.NA else cudf.NA
          for v in input_obj
      ]
  
      expect = pd.Series(input_obj, dtype="category")
      got = cudf.Series(input_obj, dtype="category").to_pandas()
  
      assert_eq(expect, got)
  
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 36 for calling a global function with example usage: test_series_construction_with_nulls(input_obj, dtype) without return types