def METHOD_NAME(all_q_values, nuc_data, build_dir=""):
    """Adds q_value table to the nuc_data.h5 library.
    Parameters
    ----------
    all_q_values: list of tuples
        Array of q_values for all nuclides.
    nuc_data : str
        Path to nuclide data file.
    build_dir : str
        Directory to place q_value files in.
    """
    # Sort and filter the q_values, make into list of tuples
    distinct_all_q_values = format_q_values(all_q_values)
    # Define data type
    qv_dtype = np.dtype(
        [
            ("nuc", np.int32),
            ("q_val", np.float64),
            ("gamma_frac", np.float64),
        ]
    )
    # Convert to numpy array
    q_value_array = np.array(distinct_all_q_values, dtype=qv_dtype)
    # Open the hdf5 file
    nuc_file = tb.open_file(nuc_data, "a", filters=BASIC_FILTERS)
    # Make the group if it's not there
    if not hasattr(nuc_file.root, "decay"):
        nuc_file.create_group("/", "decay", "ENSDF Decay data")
    # Make a new table
    q_value_table = nuc_file.create_table(
        "/decay",
        "q_values",
        q_value_array,
        "Nuclide, Q_value [MeV per disintegration], Fraction of Q that comes from gammas",
    )
    # Ensure that data was written to table
    q_value_table.flush()
    # Close the hdf5 file
    nuc_file.close()