code: def remove_all(self, item):
          # type: (Any) -> None
          
          item = self.ref(item)
          while list.__contains__(self, item):
              list.remove(self, item)
docs: Remove all occurrence of the parameter.
          :param item: Value to delete from the WeakList.