code: def check_algo_exception(self, algo, ctx, expected_order_count):
      self.assertEqual(algo.order_count, expected_order_count)
      exc = ctx.exception
      self.assertEqual(TradingControlViolation, type(exc))
      exc_msg = str(ctx.exception)
      self.assertTrue("RestrictedListOrder" in exc_msg)
  
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 12 for calling the SecurityListTestCase obj's underlying member method code with example usage: obj.check_algo_exception(algo, ctx, expected_order_count) without return types