class_docstr: This algorithm will send a specified number of orders, to allow unit tests
  to verify the orders sent/received, transactions created, and positions
  at the close of a simulation.
class_docstr_tok: ["This","algorithm","will","send","a","specified","number","of","orders",",","to","allow","unit","tests","to","verify","the","orders","sent\/received",",","transactions","created",",","and","positions","at","the","close","of","a","simulation","."]
code: def initialize(
      self,
      sid,
      amount,
      order_count,
      sid_filter=None,
      slippage=None,
      commission=None,
  ):
      self.count = order_count
      self.asset = self.sid(sid)
      self.amount = amount
      self.incr = 0
  
      if sid_filter:
          self.sid_filter = sid_filter
      else:
          self.sid_filter = [self.asset.sid]
  
      if slippage is not None:
          self.set_slippage(slippage)
  
      if commission is not None:
          self.set_commission(commission)
  
imports: import numpy
  from nose.tools import assert_raises
  from six import itervalues
  from zipline.algorithm import TradingAlgorithm
  from zipline.api import FixedSlippage, order, set_slippage, record, sid
  from zipline.errors import UnsupportedOrderParameters
  from zipline.finance.execution import LimitOrder, MarketOrder, StopLimitOrder, StopOrder
label_desc: Use image node_id 1 for calling the TestAlgorithm obj's underlying member method code with example usage: obj.initialize(sid, amount, order_count, sid_filter, slippage, commission) without return types