code: def test_series_construction_with_nulls(dtype, input_obj):
      dtype = cudf.dtype(dtype)
      # numpy case
  
      expect = pd.Series(
          input_obj, dtype=np_dtypes_to_pandas_dtypes[dtype]
      )
      got = cudf.Series(input_obj, dtype=dtype).to_pandas(nullable=True)
  
      assert_eq(expect, got)
  
      # Test numpy array of objects case
      np_data = [
          dtype.type(v) if v is not cudf.NA else cudf.NA
          for v in input_obj
      ]
  
      expect = pd.Series(
          np_data, dtype=np_dtypes_to_pandas_dtypes[dtype]
      )
      got = cudf.Series(np_data, dtype=dtype).to_pandas(nullable=True)
      assert_eq(expect, got)
  
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.testing._utils import NUMERIC_TYPES, assert_eq
  from cudf.utils.dtypes import np_dtypes_to_pandas_dtypes
label_desc: Use image node_id 15 for calling a global function with example usage: test_series_construction_with_nulls(dtype, input_obj) without return types