code: def max_curve(trial_scores: np.ndarray) -> np.ndarray:
      """f(n) = max([s[i] fo i < n])
  
      Parameters
      ----------
      trial_scores : List[float]
          the score of i-th trial
  
      Returns
      -------
      curve : np.ndarray
          A vector, the max-curve function values
      """
      ret = np.empty(len(trial_scores))
      keep = -1e9
      for i, score in enumerate(trial_scores):
          keep = max(keep, score)
          ret[i] = keep
      return ret
  
label_desc: Use image node_id 1 for calling a global function with example usage: max_curve(trial_scores) and returns: ret