code: def test_series_replace_with_nulls():
      a1 = np.array([0, 1, 2, 3, 4])
  
      # Numerical
      a2 = np.array([-10, 1, 2, 3, 4])
      sr1 = cudf.Series(a1)
      sr2 = sr1.replace(0, None).fillna(-10)
      assert_eq(a2, sr2.to_numpy())
  
      # List input
      a6 = np.array([-10, 6, 2, 3, 4])
      sr6 = sr1.replace([0, 1], [None, 6]).fillna(-10)
      assert_eq(a6, sr6.to_numpy())
  
      sr1 = cudf.Series([0, 1, 2, 3, 4, None])
      with pytest.raises(TypeError):
          sr1.replace([0, 1], [5.5, 6.5]).fillna(-10)
  
      # Series input
      a8 = np.array([-10, -10, -10, 3, 4, -10])
      sr8 = sr1.replace(
          cudf.Series([-10] * 3, index=sr1[:3]), None
      ).fillna(-10)
      assert_eq(a8, sr8.to_numpy())
  
      a9 = np.array([-10, 6, 2, 3, 4, -10])
      sr9 = sr1.replace([0, 1], [None, 6]).fillna(-10)
      assert_eq(a9, sr9.to_numpy())
  
imports: import re
  from decimal import Decimal
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_134, PANDAS_GE_150
  from cudf.core.dtypes import Decimal32Dtype, Decimal64Dtype, Decimal128Dtype
  from cudf.testing._utils import INTEGER_TYPES, NUMERIC_TYPES, assert_eq, assert_exceptions_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_series_replace_with_nulls() without return types