def get_bin_values(base_dataset, bin_value):
    """Gets the values to be used when sorting into bins for the given dataset, from the configured options."""
    values = None
    if bin_value == "results":
        values = base_dataset.get_output()
    elif bin_value == "all":
        # We set all values to 0, assuming single bin will also set its value to 0.
        values = [0] * base_dataset.get_number_of_samples()
    else:
        raise Exception(f"Invalid bin value configured: {bin_value}")
    return values