<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def MakeCdfFromPmf(pmf, name=None):
 """Makes a CDF from a Pmf object. Args: pmf: Pmf.Pmf object name: string name for the data. Returns: Cdf object """

    if name == None:
        name = pmf.name
    return MakeCdfFromItems(pmf.Items(), name)