code: def test_join_with_period_index(self, join_type):
      df = DataFrame(
          np.ones((10, 2)),
          index=date_range("2020-01-01", periods=10),
          columns=period_range("2020-01-01", periods=2),
      )
      s = df.iloc[:5, 0]
  
      expected = df.columns.astype("O").join(s.index, how=join_type)
      result = df.columns.join(s.index, how=join_type)
      tm.assert_index_equal(expected, result)
  
file_path: pandas/pandas/tests/indexes/datetimes/test_join.py
imports: from datetime import datetime, timezone
  import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, Timestamp, date_range, period_range, to_datetime
  import pandas._testing
  from pandas.tseries.offsets import BDay, BMonthEnd
label_desc: Use image node_id 3 for calling the TestJoin obj's underlying member method code with example usage: obj.test_join_with_period_index(join_type) without return types