code: def get_position_list_value(positions):
      # generate instrument list and date for whole poitions
      instruments = set()
      for day, position in positions.items():
          instruments.update(position.keys())
      instruments = list(set(instruments) - {"cash"})  # filter 'cash'
      instruments.sort()
      day_list = list(positions.keys())
      day_list.sort()
      start_date, end_date = day_list[0], day_list[-1]
      # load data
      fields = ["$close"]
      close_data_df = D.features(
          instruments,
          fields,
          start_time=start_date,
          end_time=end_date,
          freq="day",
          disk_cache=0,
      )
      # generate value
      # return dict for time:position_value
      value_dict = OrderedDict()
      for day, position in positions.items():
          value = _get_position_value_from_df(
              evaluate_date=day,
              position=position,
              close_data_df=close_data_df,
          )
          value_dict[day] = value
      return value_dict
  
imports: from __future__ import division
  from __future__ import print_function
  import numpy
  import pandas
  from scipy.stats import spearmanr, pearsonr
  from ..data import D
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: get_position_list_value(positions) and returns: value_dict