code: def _check_fit_metric(metric):
      from bigdl.nano.utils.common import invalidInputError
  
      if metric not in ALLOWED_FIT_METRICS:
          invalidInputError(
              False,
              f"metric {metric} is not supported for fit. "
              f"Input metric should be among {ALLOWED_FIT_METRICS}",
          )
  
file_path: BigDL/python/chronos/src/bigdl/chronos/autots/deprecated/regression/base_predictor.py
imports: import pandas
  import os
  from abc import abstractmethod
  from bigdl.orca.automl.metrics import Evaluator
  from bigdl.chronos.autots.deprecated.pipeline.time_sequence import TimeSequencePipeline
  from bigdl.orca.automl.search.utils import process
  from bigdl.chronos.autots.deprecated.config.recipe import *
  from bigdl.orca.ray import OrcaRayContext
  from bigdl.orca.automl.auto_estimator import AutoEstimator
label_desc: Use image node_id 4 for calling the BasePredictor obj's underlying member method code with example usage: obj._check_fit_metric(metric) without return types