code: def test_multiset_partitions_versions():
      """Compares Knuth-based versions of multiset_partitions"""
      multiplicities = [5, 2, 2, 1]
      m = MultisetPartitionTraverser()
      for s1, s2 in zip_longest(
          m.enum_all(multiplicities),
          multiset_partitions_taocp(multiplicities),
      ):
          assert compare_multiset_states(s1, s2)
  
file_path: sympy/sympy/utilities/tests/test_enumerative.py
imports: from itertools import zip_longest
  from sympy.utilities.enumerative import list_visitor, MultisetPartitionTraverser, multiset_partitions_taocp
  from sympy.utilities.iterables import _set_partitions
label_desc: Use image node_id 6 for calling a global function with example usage: test_multiset_partitions_versions() without return types