code: def __init__(self, *args, **kwargs):
      self.before_trading_at = []
      super(BeforeTradingAlgorithm, self).__init__(*args, **kwargs)
  
imports: from datetime import time
  import pandas
  from mock import patch
  from nose_parameterized import parameterized
  from six.moves import range
  from catalyst import TradingAlgorithm
  from catalyst.gens.sim_engine import BEFORE_TRADING_START_BAR
  from catalyst.finance.performance import PerformanceTracker
  from catalyst.finance.asset_restrictions import NoRestrictions
  from catalyst.gens.tradesimulation import AlgorithmSimulator
  from catalyst.sources.benchmark_source import BenchmarkSource
  from catalyst.test_algorithms import NoopAlgorithm
  from catalyst.testing.fixtures import WithDataPortal, WithSimParams, WithTradingEnvironment, CatalystTestCase
  from catalyst.utils import factory
  from catalyst.testing.core import FakeDataPortal
  from catalyst.utils.calendars.trading_calendar import days_at_time
label_desc: Use image node_id 1 to create a new BeforeTradingAlgorithm object from inherited base classes: TradingAlgorithm with example: obj = BeforeTradingAlgorithm()