code: def test_series_clip(data, lower, upper, inplace):
      psr = pd.Series(data)
      gsr = cudf.from_pandas(psr)
  
      expect = psr.clip(lower=lower, upper=upper)
      got = gsr.clip(lower=lower, upper=upper, inplace=inplace)
  
      if inplace is True:
          assert_eq(expect, gsr)
      else:
          assert_eq(expect, got)
  
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 27 for calling a global function with example usage: test_series_clip(data, lower, upper, inplace) without return types