docs: def MakePmfFromHist(hist, name=None):
      """Makes a normalized PMF from a Hist object.
  
      Args:
          hist: Hist object
          name: string name
  
      Returns:
          Pmf object
      """
      if name is None:
          name = hist.name
  
      # make a copy of the dictionary
      d = dict(hist.GetDict())
      pmf = Pmf(d, name)
      pmf.Normalize()
      return pmf