def _create_labels(bins_for_labels: list, round_param: int):
    """
    This function receives a list of bin edges and a rounding parameter and returns a list of bin labels. The returned
    list is shorter by one element from the list of bins. The rounding parameter is used to round the bin edges.
    :param bins_for_labels:
    :param round_param:
    :return: list of string labels
    """
    bin_start = bins_for_labels[:-1]
    bin_end = bins_for_labels[1:]
    labels = []
    for i in range(len(bin_start)):
        opener = '('
        closer = ']'
        if i == 0:
            opener = '['
        labels.append(opener + str(round(bin_start[i], round_param)) +
            ' - ' + str(round(bin_end[i], round_param)) + closer)
    return labels
