code: def test_duplicatingWeekly(self):
      tkrs = ["MSFT", "IWO", "VFINX", "^GSPC", "BTC-USD"]
      test_run = False
      for tkr in tkrs:
          dat = yf.Ticker(tkr, session=self.session)
          tz = dat._get_ticker_tz(proxy=None, timeout=None)
  
          dt = _tz.timezone(tz).localize(_dt.datetime.now())
          if dt.date().weekday() not in [1, 2, 3, 4]:
              continue
          test_run = True
  
          df = dat.history(
              start=dt.date() - _dt.timedelta(days=7), interval="1wk"
          )
          dt0 = df.index[-2]
          dt1 = df.index[-1]
          try:
              self.assertNotEqual(dt0.week, dt1.week)
          except AssertionError:
              print(
                  "Ticker={}: Last two rows within same week:".format(
                      tkr
                  )
              )
              print(df.iloc[df.shape[0] - 2 :])
              raise
  
      if not test_run:
          self.skipTest(
              "Skipping test_duplicatingWeekly() because not possible to fail Monday/weekend"
          )
  
imports: from .context import yfinance
  from .context import session_gbl
  import unittest
  import os
  import datetime
  import pytz
  import numpy
  import pandas
label_desc: Use image node_id 8 for calling the TestPriceHistory obj's underlying member method code with example usage: obj.test_duplicatingWeekly() without return types