code: def __init__(
      self,
      data_frequency,
      equity_slippage=None,
      future_slippage=None,
      equity_commission=None,
      future_commission=None,
      cancel_policy=None,
  ):
      # these orders are aggregated by asset
      self.open_orders = defaultdict(list)
  
      # keep a dict of orders by their own id
      self.orders = {}
  
      # holding orders that have come in since the last event.
      self.new_orders = []
      self.current_dt = None
  
      self.max_shares = int(1e11)
  
      self.slippage_models = {
          Equity: equity_slippage or VolumeShareSlippage(),
          Future: future_slippage
          or VolatilityVolumeShare(
              volume_limit=DEFAULT_FUTURE_VOLUME_SLIPPAGE_BAR_LIMIT,
          ),
      }
      self.commission_models = {
          Equity: equity_commission or PerShare(),
          Future: future_commission
          or PerContract(
              cost=DEFAULT_PER_CONTRACT_COST,
              exchange_fee=FUTURE_EXCHANGE_FEES_BY_SYMBOL,
          ),
      }
  
      self.data_frequency = data_frequency
  
      self.cancel_policy = (
          cancel_policy if cancel_policy else NeverCancel()
      )
  
imports: from logbook import Logger
  from collections import defaultdict
  from copy import copy
  from six import iteritems
  from catalyst.assets import Equity, Future, Asset
  from catalyst.finance.order import Order
  from catalyst.finance.slippage import DEFAULT_FUTURE_VOLUME_SLIPPAGE_BAR_LIMIT, VolatilityVolumeShare, VolumeShareSlippage
  from catalyst.finance.commission import DEFAULT_PER_CONTRACT_COST, FUTURE_EXCHANGE_FEES_BY_SYMBOL, PerContract, PerShare
  from catalyst.finance.cancel_policy import NeverCancel
  from catalyst.utils.input_validation import expect_types
  from catalyst.constants import LOG_LEVEL
label_desc: Use image node_id 1 to create a new Blotter object from inherited base classes: object with example: obj = Blotter(data_frequency, equity_slippage, future_slippage, equity_commission, future_commission, cancel_policy)