docstr: threshold:int tolerance for increase in sharpe ratio
  trial_number: int Prune after minimum number of trials
  patience: int patience for the threshold
docstr_tok: ["threshold",":","int","tolerance","for","increase","in","sharpe","ratio","trial_number",":","int","Prune","after","minimum","number","of","trials","patience",":","int","patience","for","the","threshold"]
code: def __init__(self, threshold: int, trial_number: int, patience: int):
      """
      threshold:int tolerance for increase in sharpe ratio
      trial_number: int Prune after minimum number of trials
      patience: int patience for the threshold
      """
      self.threshold = threshold
      self.trial_number = trial_number
      self.patience = patience
      self.cb_list = []
  
imports: from __future__ import annotations
  import datetime
  import joblib
  import optuna
  import pandas
  from stable_baselines3 import A2C
  from stable_baselines3 import DDPG
  from stable_baselines3 import PPO
  from stable_baselines3 import SAC
  from stable_baselines3 import TD3
  import finrl.agents.stablebaselines3.hyperparams_opt
  from finrl import config
  from finrl.agents.stablebaselines3.models import DRLAgent
  from finrl.main import check_and_make_directories
  from finrl.plot import backtest_stats
label_desc: Use image node_id 1 to create a new LoggingCallback object  with example: obj = LoggingCallback(threshold, trial_number, patience)