docstr: Sets the fitted attribute to True.
  
  Should be called within each transform method.
docstr_tok: ["Sets","the","fitted","attribute","to","True",".","Should","be","called","within","each","transform","method","."]
code: def _set_fitted(self) -> Self:
      """Sets the fitted attribute to True.
  
      Should be called within each transform method.
      """
      self.fitted = True
      return self
  
imports: from abc import ABC, abstractmethod
  from typing import Optional
  from typing_extensions import Self
  import torch
  import numpy
  from torch.nn import Module
  from alibi_detect.exceptions import NotFittedError
label_desc: Use image node_id 2 for calling the FitMixinTorch obj's underlying member method code with example usage: obj._set_fitted() and returns: self