code: def test_with_multi_index(self):
      # #1705
      index = date_range("1/1/2012", periods=4, freq="12h")
      index_as_arrays = [index.to_period(freq="D"), index.hour]
  
      s = Series([0, 1, 2, 3], index_as_arrays)
  
      assert isinstance(s.index.levels[0], PeriodIndex)
  
      assert isinstance(s.index.values[0][0], Period)
  
file_path: pandas/pandas/tests/indexes/period/test_period.py
imports: import numpy
  import pytest
  from pandas import Index, NaT, Period, PeriodIndex, Series, date_range, offsets, period_range
  import pandas._testing
label_desc: Use image node_id 9 for calling the TestPeriodIndex obj's underlying member method code with example usage: obj.test_with_multi_index() without return types