import csv


def _generate_random_graph_labels(
    left_nodes_count: int, right_nodes_count: int
) -> bool:
    """
    Generate Labels for randomly generated graph nodes by generate_random_graph_edges() function

    :param left_nodes_count: Number of the left-side nodes
    :param right_nodes_count: Number of the right-side nodes
    :return: True on success
    """
    with open("./inputs/id_labels.csv", "w") as csvfile:
        file_writer = csv.writer(
            csvfile, delimiter=",", quotechar='"', quoting=csv.QUOTE_MINIMAL
        )
        file_writer.writerow(["ID", "Label"])
        for i in range(left_nodes_count):
            file_writer.writerow([i, f"left_node_{i}"])
        for i in range(right_nodes_count):
            file_writer.writerow([i + 100, f"right_node_{i}"])
    return True