code: def _test_history_close_session_skip_volume(self):
      cf = self.data_portal.asset_finder.create_continuous_future(
          "MA", 0, "volume", None
      )
      window = self.data_portal.get_history_window(
          [cf.sid],
          Timestamp("2016-03-06", tz="UTC"),
          30,
          "1d",
          "close",
          "daily",
      )
  
      assert_almost_equal(
          window.loc["2016-01-26", cf],
          245011.440,
          err_msg="At beginning of window, should be MAG16's first value.",
      )
  
      assert_almost_equal(
          window.loc["2016-02-26", cf],
          265241.440,
          err_msg="Should have skipped MAH16 to MAJ16.",
      )
  
      assert_almost_equal(
          window.loc["2016-02-29", cf],
          265251.440,
          err_msg="Should have remained MAJ16.",
      )
  
      # Advance the window a month.
      window = self.data_portal.get_history_window(
          [cf.sid],
          Timestamp("2016-04-06", tz="UTC"),
          30,
          "1d",
          "close",
          "daily",
      )
  
      assert_almost_equal(
          window.loc["2016-02-24", cf],
          265221.440,
          err_msg="Should be MAJ16, having skipped MAH16.",
      )
  
      assert_almost_equal(
          window.loc["2016-02-29", cf],
          265251.440,
          err_msg="Should be MAJ1 for rest of window.",
      )
  
      assert_almost_equal(
          window.loc["2016-03-24", cf],
          265431.440,
          err_msg="Should be MAJ16 for rest of window.",
      )
  
imports: from collections import deque
  from functools import partial
  from textwrap import dedent
  from numpy import arange, array, int64, full, repeat, tile
  from numpy.testing import assert_almost_equal
  import pandas
  from pandas import Timestamp, DataFrame
  from catalyst import TradingAlgorithm
  from catalyst.assets.continuous_futures import OrderedContracts, delivery_predicate
  from catalyst.data.minute_bars import FUTURES_MINUTES_PER_DAY
  from catalyst.errors import SymbolNotFound
  from catalyst.testing.fixtures import WithAssetFinder, WithCreateBarData, WithDataPortal, WithBcolzFutureMinuteBarReader, WithSimParams, CatalystTestCase
label_desc: Use image node_id 18 for calling the ContinuousFuturesTestCase obj's underlying member method code with example usage: obj._test_history_close_session_skip_volume() without return types