code: def _check_fit_metric(metric):
      if metric not in ALLOWED_FIT_METRICS:
          raise ValueError(
              f"metric {metric} is not supported for fit. "
              f"Input metric should be among {ALLOWED_FIT_METRICS}"
          )
  
file_path: analytics-zoo/pyzoo/zoo/chronos/autots/deprecated/regression/base_predictor.py
imports: import pandas
  import os
  from abc import abstractmethod
  from zoo.orca.automl.metrics import Evaluator
  from zoo.chronos.autots.deprecated.pipeline.time_sequence import TimeSequencePipeline
  from zoo.orca.automl.search.utils import process
  from zoo.chronos.autots.deprecated.config.recipe import *
  from zoo.ray import RayContext
  from zoo.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