def tuple_product(t: Tuple) -> Any:
    """Calculate the product of the tuple elements."""
    result = 1

    for v in t:
        result *= v

    return result
Calculate the product of the tuple elements.
converters/stylegan2_official/dnnlib/util.py