docstr: Sets the fitted attribute to True.
  
  Should be called within the object fit method.
docstr_tok: ["Sets","the","fitted","attribute","to","True",".","Should","be","called","within","the","object","fit","method","."]
code: def _set_fitted(self) -> Self:
      """Sets the fitted attribute to True.
  
      Should be called within the object fit method.
      """
      self.fitted = True
      return self
  
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 2 for calling the FitMixinSklearn obj's underlying member method code with example usage: obj._set_fitted() and returns: self