class_docstr: Test frequency conversion of date objects
class_docstr_tok: ["Test","frequency","conversion","of","date","objects"]
code: def test_asfreq_near_zero_weekly(self):
      # GH#19834
      per1 = Period("0001-01-01", "D") + 6
      per2 = Period("0001-01-01", "D") - 6
      week1 = per1.asfreq("W")
      week2 = per2.asfreq("W")
      assert week1 != week2
      assert week1.asfreq("D", "E") >= per1
      assert week2.asfreq("D", "S") <= per2
  
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 2 for calling the TestFreqConversion obj's underlying member method code with example usage: obj.test_asfreq_near_zero_weekly() without return types