code: def reset_model_threshold(model, threshold):
      """
      Reset model threshold - performance metric will be recalculated, the new threshold will be used for predictions.
      :param model: H2OModel instance
      :param threshold: new threshold to be set to model
      :return: old threshold value
      """
  
      fr = H2OFrame._expr(
          ExprNode("model.reset.threshold", model, threshold)
      )
      return fr.flatten()
  
label_desc: Use image node_id 1 for calling a global function with example usage: reset_model_threshold(model, threshold) and returns: fr