code: def test_security_list(self):
      # set the knowledge date to the first day of the
      # leveraged etf knowledge date.
      def get_datetime():
          return self.START_DATE
  
      rl = SecurityListSet(get_datetime, self.asset_finder)
      # assert that a sample from the leveraged list are in restricted
      should_exist = [
          asset.sid
          for asset in [
              self.asset_finder.lookup_symbol(
                  symbol, as_of_date=self.extra_knowledge_date
              )
              for symbol in ["BZQ", "URTY", "JFT"]
          ]
      ]
      for sid in should_exist:
          self.assertIn(
              sid,
              rl.leveraged_etf_list.current_securities(get_datetime()),
          )
  
      # assert that a sample of allowed stocks are not in restricted
      shouldnt_exist = [
          asset.sid
          for asset in [
              self.asset_finder.lookup_symbol(
                  symbol, as_of_date=self.extra_knowledge_date
              )
              for symbol in ["AAPL", "GOOG"]
          ]
      ]
      for sid in shouldnt_exist:
          self.assertNotIn(
              sid,
              rl.leveraged_etf_list.current_securities(get_datetime()),
          )
  
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 2 for calling the SecurityListTestCase obj's underlying member method code with example usage: obj.test_security_list() and returns: self