docstr: Checks to make sure object has been fitted.
  
  Raises
  ------
  NotFittedError
      Raised if method called and object has not been fit.
docstr_tok: ["Checks","to","make","sure","object","has","been","fitted",".","Raises","--","--","--","NotFittedError","Raised","if","method","called","and","object","has","not","been","fit","."]
code: def check_fitted(self):
      """Checks to make sure object has been fitted.
  
      Raises
      ------
      NotFittedError
          Raised if method called and object has not been fit.
      """
      if not self.fitted:
          raise NotFittedError(self.__class__.__name__)
  
imports: from typing import List, Union, Optional, Dict
  from dataclasses import dataclass, asdict
  from abc import ABC, abstractmethod
  from typing_extensions import Self
  import numpy
  from alibi_detect.exceptions import NotFittedError, ThresholdNotInferredError
label_desc: Use image node_id 3 for calling the FitMixinSklearn obj's underlying member method code with example usage: obj.check_fitted() without return types