def add_input(self, accumulator, element, *args, **kwargs):
    try:
        accumulator.add(hash(self._coder.encode(element)))
        return accumulator
    except Exception as e:
        raise RuntimeError('Runtime exception: %s', e)
def add_input(self, accumulator, element, *args, **kwargs):
    try:
        accumulator.add(hash(self._coder.encode(element)))
        return accumulator
    except Exception as e:
        raise RuntimeError('Runtime exception: %s', e)