code: def test_days_to_liquidate_positions(self):
      dtlp = days_to_liquidate_positions(
          self.positions,
          self.market_data,
          max_bar_consumption=1,
          capital_base=1e6,
          mean_volume_window=1,
      )
  
      expected = DataFrame(
          [[0.0, 0.5 / 3], [0.75 / 2, 0.0]],
          columns=["A", "B"],
          index=self.dates[1:],
      )
      assert_frame_equal(dtlp, expected)
  
file_path: pyfolio/pyfolio/tests/test_capacity.py
imports: from __future__ import division
  from unittest import TestCase
  from nose_parameterized import parameterized
  from pandas import Series, DataFrame, date_range, datetime, concat
  from pandas.util.testing import assert_frame_equal, assert_series_equal
  from pyfolio.capacity import days_to_liquidate_positions, get_max_days_to_liquidate_by_ticker, get_low_liquidity_transactions, daily_txns_with_bar_data, apply_slippage_penalty
label_desc: Use image node_id 1 for calling the CapacityTestCase obj's underlying member method code with example usage: obj.test_days_to_liquidate_positions() without return types