How do I write the code in Python by using dict?
The MultiSet ADT:
init(self) -
add(item, m) - Add item to the multiset with multiplicity m . If no multiplicity is given, it should default to multiplicity = 1.
remove(item, m) - Remove m copies of item from the multiset. If fewer than m copies are in the multiset, it should just remove all of them.
mult(item) - return the multiplicity of item in the multiset. If item is not in the multiset, then return 0 .
contains(item, m) - Return True if item appears in the multiset with multiplicity at least m . Return False otherwise.