docstr: Abstract fit method.
  
  Parameters
  ----------
  x
      `torch.Tensor` to fit object on.
docstr_tok: ["Abstract","fit","method",".","Parameters","--","--","--","--","--","x","`","torch.Tensor","`","to","fit","object","on","."]
code: def fit(self, x_ref: torch.Tensor) -> Self:
      """Abstract fit method.
  
      Parameters
      ----------
      x
          `torch.Tensor` to fit object on.
      """
      pass
  
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 1 for calling the FitMixinTorch obj's underlying member method code with example usage: obj.fit(x_ref) without return types