class_docstr: Base class of scorers that do need training.
docstr: Checks if the scorer has been fitted before calling its `score()` function.
docstr_tok: ["Checks","if","the","scorer","has","been","fitted","before","calling","its","`","score","(",")","`","function","."]
code: def check_if_fit_called(self):
      """Checks if the scorer has been fitted before calling its `score()` function."""
  
      raise_if_not(
          self._fit_called,
          f"The Scorer {self.__str__()} has not been fitted yet. Call ``fit()`` first.",
      )
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Sequence, Union
  import numpy
  from darts import TimeSeries
  from darts.ad.utils import _assert_same_length, _assert_timeseries, _intersect, _sanity_check_two_series, _to_list, eval_accuracy_from_scores, show_anomalies_from_scores
  from darts.logging import get_logger, raise_if_not
label_desc: Use image node_id 2 for calling the FittableAnomalyScorer obj's underlying member method code with example usage: obj.check_if_fit_called() without return types