class_docstr: Detector class.
  
  The detector is is a `nn.Module` subclass that, after fitting, performs a drift test when called and returns a score or p-value.
  
      Constructor Args:
              return_p_value (bool): If set, forward returns a p-value (estimate) instead of the raw test score.
docstr: Record a sample as the reference distribution
code: def fit(self, x: torch.Tensor):
      """Record a sample as the reference distribution"""
      self.base_outputs = x.detach()
      return x
  
file_path: TorchDrift/torchdrift/detectors/detector.py
imports: import torch
  import torchdrift.utils
label_desc: Use image node_id 2 for calling the Detector obj's underlying member method code with example usage: obj.fit(x) and returns: x