code: def __init__(self, sid):
      self.sid = sid
      self.amount = 0
      self.cost_basis = 0.0  # per share
      self.last_sale_price = 0.0
      self.last_sale_date = None
  
imports: from warnings import warn
  import pandas
  from catalyst.assets import Asset, Future
  from catalyst.utils.input_validation import expect_types
  from .utils.enum import enum
  from catalyst._protocol import BarData
label_desc: Use image node_id 1 to create a new _DeprecatedSidLookupPosition object from inherited base classes: object with example: obj = _DeprecatedSidLookupPosition(sid)