code: def safemean(xs):
      return np.nan if len(xs) == 0 else np.mean(xs)
  
file_path: baselines/baselines/ppo2/ppo2.py
imports: import os
  import time
  import numpy
  import os.path
  from baselines import logger
  from collections import deque
  from baselines.common import explained_variance, set_global_seeds
  from baselines.common.policies import build_policy
  from baselines.ppo2.runner import Runner
label_desc: Use image node_id 3 for calling a global function with example usage: safemean(xs) and returns: unknown