def MakePmfFromDict(d, name='<STR_LIT>'):
pmf = Pmf(d, name)<EOL>pmf.Normalize()<EOL>return pmf<EOL>
Makes a PMF from a map from values to probabilities.

    Args:
        d: dictionary that maps values to probabilities
        name: string name for this PMF

    Returns:
        Pmf object