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.
code: def __init__(self, *, return_p_value: bool = False):
      super().__init__()
      self.register_buffer("base_outputs", None)
      self.return_p_value = return_p_value
  
file_path: TorchDrift/torchdrift/detectors/detector.py
imports: import torch
  import torchdrift.utils
label_desc: Use image node_id 1 to create a new Detector object from inherited base classes: torch.nn with example: obj = Detector()