def restore_from_factorization(factorization):
    """
    Restore the original number from a factorization.
    """
    retval = 1
    for _base, _power in factorization.items():
        retval *= int(_base) ** int(_power)
    return retval