code: def test_constructor_datetime64arr(self):
      vals = np.arange(100000, 100000 + 10000, 100, dtype=np.int64)
      vals = vals.view(np.dtype("M8[us]"))
  
      pi = PeriodIndex(vals, freq="D")
  
      expected = PeriodIndex(vals.astype("M8[ns]"), freq="D")
      tm.assert_index_equal(pi, expected)
  
imports: import numpy
  import pytest
  from pandas._libs.tslibs.period import IncompatibleFrequency
  from pandas.core.dtypes.dtypes import PeriodDtype
  from pandas import Index, NaT, Period, PeriodIndex, Series, date_range, offsets, period_range
  import pandas._testing
  from pandas.core.arrays import PeriodArray
label_desc: Use image node_id 14 for calling the TestPeriodIndex obj's underlying member method code with example usage: obj.test_constructor_datetime64arr() without return types