code: def test_no_stock_dividends_allowed(self):
      # try to use sid(4) as benchmark, should blow up due to the presence
      # of a stock dividend
  
      with self.assertRaises(InvalidBenchmarkAsset) as exc:
          BenchmarkSource(
              self.env.asset_finder.retrieve_asset(4),
              self.trading_calendar,
              self.sim_params.sessions,
              self.data_portal,
          )
  
      self.assertEqual(
          "Equity(4 [D]) cannot be used as the benchmark "
          "because it has a stock dividend on 2006-03-16 "
          "00:00:00.  Choose another asset to use as the "
          "benchmark.",
          exc.exception.message,
      )
  
file_path: catalyst/tests/test_benchmark.py
imports: import numpy
  import pandas
  from pandas.util.testing import assert_series_equal
  from catalyst.data.data_portal import DataPortal
  from catalyst.errors import BenchmarkAssetNotAvailableTooEarly, BenchmarkAssetNotAvailableTooLate, InvalidBenchmarkAsset
  from catalyst.sources.benchmark_source import BenchmarkSource
  from catalyst.testing import MockDailyBarReader, create_minute_bar_data, tmp_bcolz_equity_minute_bar_reader
  from catalyst.testing.fixtures import WithDataPortal, WithSimParams, WithTradingCalendars, CatalystTestCase
label_desc: Use image node_id 7 for calling the TestBenchmark obj's underlying member method code with example usage: obj.test_no_stock_dividends_allowed() without return types