code: def calc_position_values(positions):
      values = []
  
      for position in positions:
          if isinstance(position.asset, Future):
              # Futures don't have an inherent position value.
              values.append(0.0)
          else:
              values.append(position.last_sale_price * position.amount)
  
      return values
  
imports: from __future__ import division
  import logbook
  import numpy
  from collections import namedtuple
  from math import isnan
  from six import iteritems, itervalues
  from catalyst.finance.performance.position import Position
  from catalyst.finance.transaction import Transaction
  from catalyst.utils.input_validation import expect_types
  import catalyst.protocol
  from catalyst.assets import Future, Asset
  from .position import positiondict
  from catalyst.constants import LOG_LEVEL
label_desc: Use image node_id 1 for calling a global function with example usage: calc_position_values(positions) and returns: values