code: def test_apply_slippage_penalty(
      self, starting_base, impact, expected_adj_returns
  ):
      returns = Series([1.0, 1.0, 1.0], index=self.dates)
      daily_txn = daily_txns_with_bar_data(
          self.transactions, self.market_data
      )
  
      adj_returns = apply_slippage_penalty(
          returns, daily_txn, starting_base, 1000000, impact=impact
      )
      expected_adj_returns = Series(
          expected_adj_returns, index=self.dates
      )
  
      assert_series_equal(adj_returns, expected_adj_returns)
  
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 5 for calling the CapacityTestCase obj's underlying member method code with example usage: obj.test_apply_slippage_penalty(starting_base, impact, expected_adj_returns) without return types