code: def test_where_inplace():
      s = Series(np.random.default_rng(2).standard_normal(5))
      cond = s > 0
  
      rs = s.copy()
  
      rs.where(cond, inplace=True)
      tm.assert_series_equal(rs.dropna(), s[cond])
      tm.assert_series_equal(rs, s.where(cond))
  
      rs = s.copy()
      rs.where(cond, -s, inplace=True)
      tm.assert_series_equal(rs, s.where(cond, -s))
  
imports: import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas.core.dtypes.common import is_integer
  import pandas
  from pandas import Series, Timestamp, date_range, isna
  import pandas._testing
label_desc: Use image node_id 12 for calling a global function with example usage: test_where_inplace() without return types