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 _load_from_state_dict(
      self,
      state_dict,
      prefix,
      local_metadata,
      strict,
      missing_keys,
      unexpected_keys,
      error_msgs,
  ):
      for bname, b in self._buffers.items():
          if prefix + bname in state_dict and b is None:
              setattr(self, bname, state_dict[prefix + bname])
      super()._load_from_state_dict(
          state_dict,
          prefix,
          local_metadata,
          strict,
          missing_keys,
          unexpected_keys,
          error_msgs,
      )
  
file_path: TorchDrift/torchdrift/detectors/detector.py
imports: import torch
  import torchdrift.utils
label_desc: Use image node_id 6 for calling the Detector obj's underlying member method code with example usage: obj._load_from_state_dict(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs) without return types