code: def cdf(self):
      cdf = self._posterior()
      torch.cumsum(cdf, 1, out=cdf)
      cdf /= cdf[:, -1:].clone()
      return cdf
  
imports: import collections
  import functools
  import io
  import os
  import warnings
  import dgl
  import numpy
  import scipy
  import torch
label_desc: Use image node_id 7 for calling the _Dirichlet obj's underlying member method code with example usage: obj.cdf() and returns: cdf