def MakeMixture(metapmf, name='<STR_LIT>'):
mix = Pmf(name=name)<EOL>for pmf, p1 in metapmf.Items():<EOL><INDENT>for x, p2 in pmf.Items():<EOL><INDENT>mix.Incr(x, p1 * p2)<EOL><DEDENT><DEDENT>return mix<EOL>
Make a mixture distribution.

    Args:
      metapmf: Pmf that maps from Pmfs to probs.
      name: string name for the new Pmf.

    Returns: Pmf object.