code: def test_shift_deprecate_freq_and_fill_value(self, frame_or_series):
      # Can't pass both!
      obj = frame_or_series(
          np.random.default_rng(2).standard_normal(5),
          index=date_range("1/1/2000", periods=5, freq="h"),
      )
  
      msg = (
          "Passing a 'freq' together with a 'fill_value' silently ignores the "
          "fill_value"
      )
      with tm.assert_produces_warning(FutureWarning, match=msg):
          obj.shift(1, fill_value=1, freq="h")
  
      if frame_or_series is DataFrame:
          obj.columns = date_range("1/1/2000", periods=1, freq="h")
          with tm.assert_produces_warning(FutureWarning, match=msg):
              obj.shift(1, axis=1, fill_value=1, freq="h")
  
imports: import numpy
  import pytest
  import pandas
  from pandas import CategoricalIndex, DataFrame, Index, NaT, Series, date_range, offsets
  import pandas._testing
label_desc: Use image node_id 2 for calling the TestDataFrameShift obj's underlying member method code with example usage: obj.test_shift_deprecate_freq_and_fill_value(frame_or_series) without return types