class_docstr: Test frequency conversion of date objects
class_docstr_tok: ["Test","frequency","conversion","of","date","objects"]
code: def test_asfreq_near_zero(self, freq):
      # GH#19643, GH#19650
      per = Period("0001-01-01", freq=freq)
      tup1 = (per.year, per.hour, per.day)
  
      prev = per - 1
      assert prev.ordinal == per.ordinal - 1
      tup2 = (prev.year, prev.month, prev.day)
      assert tup2 < tup1
  
imports: import pytest
  from pandas._libs.tslibs.period import INVALID_FREQ_ERR_MSG
  from pandas.errors import OutOfBoundsDatetime
  from pandas import Period, Timestamp, offsets
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestFreqConversion obj's underlying member method code with example usage: obj.test_asfreq_near_zero(freq) without return types