code: def __init__(
      self,
      asset,
      amount=0,
      cost_basis=0.0,
      last_sale_price=0.0,
      last_sale_date=None,
  ):
      self.asset = asset
      self.amount = amount
      self.cost_basis = cost_basis  # per share
      self.last_sale_price = last_sale_price
      self.last_sale_date = last_sale_date
  
imports: from __future__ import division
  from math import copysign
  from collections import OrderedDict
  import numpy
  import logbook
  from catalyst.assets import Future, Asset
  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 Position object from inherited base classes: object with example: obj = Position(asset, amount, cost_basis, last_sale_price, last_sale_date)