code: def test_extract_ordinals_2d(self):
      freq = to_offset("D")
      arr = np.empty(10, dtype=object)
      arr[:] = iNaT
  
      res = extract_ordinals(arr, freq)
      res2 = extract_ordinals(arr.reshape(5, 2), freq)
      tm.assert_numpy_array_equal(res, res2.reshape(-1))
  
file_path: pandas/pandas/tests/tslibs/test_period.py
imports: import numpy
  import pytest
  from pandas._libs.tslibs import iNaT, to_offset
  from pandas._libs.tslibs.period import extract_ordinals, get_period_field_arr, period_asfreq, period_ordinal
  import pandas._testing
label_desc: Use image node_id 2 for calling the TestExtractOrdinals obj's underlying member method code with example usage: obj.test_extract_ordinals_2d() without return types