def format_quantum_numbers(info: tuple):
    """Takes an expression like

    ('S', 1, 0, 2, ('3b', 1), ('y', 2/3))

    and returns a string like

    S(3, 3, 2/3)(3b: 1)

    """
    lorentz, su3_up, su3_down, su2, *charges = info
    su3_dim = lambda m, n: 0.5 * (m + 1) * (n + 1) * (m + n + 2)
    # For now just add the bar for more lowered than raised indices, but for
    # larger reps this will be problematic
    su3_dim_format = lambda m, n: str(int(su3_dim(m, n))) + ("b" if n > m else "")
    charges_dict = dict(charges)
    return f"{lorentz}({su3_dim_format(int(su3_up), int(su3_down))}, {str(int(su2) + 1)}, {charges_dict['y']})({charges_dict['3b']})"