code: def val2reward(self, net_val_list, func=None):
      rewards = []
      for net_val in net_val_list:
          if func is None:
              rewards.append(net_val)
          elif func == "tan":
              reward = np.tan(net_val * np.pi / 2)
              rewards.append(reward)
          else:
              raise NotImplementedError
      return rewards
  
imports: import os
  import subprocess
  import json
  import pickle
  import numpy
  from ..data_providers.utils import get_data_provider_by_name
  from .expdir_monitor import ExpdirMonitor
  from ..expdir_monitor import distributed
label_desc: Use image node_id 9 for calling the ArchManager obj's underlying member method code with example usage: obj.val2reward(net_val_list, func) and returns: rewards