class_docstr: Constrains to a correlation matrix.
code: def check(self, value):
      # check for diagonal equal to 1
      unit_variance = torch.all(
          torch.abs(torch.diagonal(value, dim1=-2, dim2=-1) - 1) < 1e-6,
          dim=-1,
      )
      # TODO: fix upstream - positive_definite has an extra dimension in front of output shape
      return positive_definite.check(value) & unit_variance
  
imports: from torch.distributions.constraints import *
  import torch
  from torch.distributions.constraints import Constraint, independent, lower_cholesky, positive, positive_definite
  from torch.distributions.constraints import __all__
label_desc: Use image node_id 1 for calling the _CorrMatrix obj's underlying member method code with example usage: obj.check(value) and returns: unknown