code: def test_prune_post_intraday_asx(self):
      # Setup
      tkr = "BHP.AX"
      # No early closes in 2023
      dat = yf.Ticker(tkr, session=self.session)
  
      # Test no other afternoons (or mornings) were pruned
      start_d = _dt.date(2023, 1, 1)
      end_d = _dt.date(2023 + 1, 1, 1)
      df = dat.history(
          start=start_d,
          end=end_d,
          interval="1h",
          prepost=False,
          keepna=True,
      )
      last_dts = _pd.Series(df.index).groupby(df.index.date).last()
      dfd = dat.history(
          start=start_d,
          end=end_d,
          interval="1d",
          prepost=False,
          keepna=True,
      )
      self.assertTrue(
          _np.equal(
              dfd.index.date, _pd.to_datetime(last_dts.index).date
          ).all()
      )
  
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 21 for calling the TestPriceHistory obj's underlying member method code with example usage: obj.test_prune_post_intraday_asx() without return types