code: def test_algo_with_rl_violation(self, name, algo_class):
      algo = self.make_algo(algo_class=algo_class, symbol="BZQ")
      with self.assertRaises(TradingControlViolation) as ctx:
          algo.run()
  
      self.check_algo_exception(algo, ctx, 0)
  
      # repeat with a symbol from a different lookup date
      algo = self.make_algo(
          algo_class=RestrictedAlgoWithoutCheck,
          symbol="JFT",
      )
  
      with self.assertRaises(TradingControlViolation) as ctx:
          algo.run()
  
      self.check_algo_exception(algo, ctx, 0)
  
imports: from datetime import timedelta
  import pandas
  from nose_parameterized import parameterized
  from zipline.algorithm import TradingAlgorithm
  from zipline.errors import TradingControlViolation
  from zipline.testing import add_security_data, security_list_copy
  from zipline.testing.fixtures import WithMakeAlgo, ZiplineTestCase
  from zipline.utils import factory
  from zipline.utils.security_list import SecurityListSet, load_from_directory
label_desc: Use image node_id 7 for calling the SecurityListTestCase obj's underlying member method code with example usage: obj.test_algo_with_rl_violation(name, algo_class) without return types