title: Sympy multiset_partitions : Obtain multiplicities?
body: <p>in simpy, there is a wanderfull code that allows to obtain partitions of a multiset. See the exemple from <a href="https://docs.sympy.org/latest/modules/utilities/iterables.html#sympy.utilities.iterables.multiset_partitions" rel="nofollow noreferrer">the documentation</a>:</p>
  <pre><code>from sympy.utilities.iterables import multiset_partitions
  for i in multiset_partitions([0,0,1]):
      print(i)
  </code></pre>
  <p>outputs :</p>
  <pre><code>[[0, 0, 1]]
  [[0, 0], [1]]
  [[0, 1], [0]] *
  [[0], [0], [1]]
  </code></pre>
  <p>This outputs the <strong>set</strong> of the partitions of the multiset. Is there, somewhere in sympy, a way i can obtain the <strong>multiset</strong> of partitions of the multiset ? The problem i have is exactly the same as <a href="https://stackoverflow.com/questions/42215165/yielding-partitions-of-a-multiset-with-ruby">this question in ruby stackoverflow</a>, the fact is that the set of parts of the multiset that i highlighted with a <code>*</code> should come with multiplicity 2.</p>
  <p>Maybe the corrsponding multiplicities can be calculated otherwise ?</p>