class_docstr: A base distribution object.
  
  This distribution is inherited by all the other distributions.
class_docstr_tok: ["A","base","distribution","object",".","This","distribution","is","inherited","by","all","the","other","distributions","."]
code: def summarize(self, X, sample_weight=None):
      if not self._initialized:
          self._initialize(len(X[0]))
  
      X = _cast_as_tensor(X)
      _check_parameter(
          X,
          "X",
          ndim=2,
          shape=(-1, self.d),
          check_parameter=self.check_data,
      )
  
      sample_weight = _reshape_weights(
          X, _cast_as_tensor(sample_weight), device=self.device
      )
  
      return X, sample_weight
  
imports: import torch
  from .._utils import _cast_as_tensor
  from .._utils import _update_parameter
  from .._utils import _cast_as_parameter
  from .._utils import _check_parameter
  from .._utils import _reshape_weights
label_desc: Use image node_id 11 for calling the Distribution obj's underlying member method code with example usage: obj.summarize(X, sample_weight) and returns: X,  sample_weight