code: def __init__(self, metric_threshold, epochs, metric, mode):
      self._mode = mode
      self._metric = metric
      self._metric_threshold = metric_threshold
      self._epochs = epochs
  
imports: import ray
  from ray import tune
  import os
  from zoo.orca.automl.search.base import SearchEngine, TrialOutput, GoodError
  from zoo.orca.automl.search.parameters import DEFAULT_LOGGER_NAME, DEFAULT_METRIC_NAME
  from zoo.orca.automl.search.ray_tune.utils import convert_bayes_configs
  from zoo.orca.automl.search.utils import get_ckpt_hdfs, put_ckpt_hdfs
  from zoo.orca.automl.search import TensorboardLogger
  from ray.tune import Stopper
  from zoo.orca.automl.model.abstract import ModelBuilder
label_desc: Use image node_id 1 to create a new TrialStopper object from inherited base classes: Stopper with example: obj = TrialStopper(metric_threshold, epochs, metric, mode)