code: def test_isin_period_freq_mismatch(self):
      dti = date_range("2013-01-01", "2013-01-05")
      pi = dti.to_period("M")
      ser = Series(pi)
  
      # We construct another PeriodIndex with the same i8 values
      #  but different dtype
      dtype = dti.to_period("Y").dtype
      other = PeriodArray._simple_new(pi.asi8, dtype=dtype)
  
      res = pi.isin(other)
      expected = np.array([False] * len(pi), dtype=bool)
      tm.assert_numpy_array_equal(res, expected)
  
      res = ser.isin(other)
      tm.assert_series_equal(res, Series(expected))
  
      res = pd.core.algorithms.isin(ser, other)
      tm.assert_numpy_array_equal(res, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Series, date_range
  import pandas._testing
  from pandas.core import algorithms
  from pandas.core.arrays import PeriodArray
label_desc: Use image node_id 10 for calling the TestSeriesIsIn obj's underlying member method code with example usage: obj.test_isin_period_freq_mismatch() without return types