def METHOD_NAME(edge):
    e = {}
    if isinstance(edge, Qubit):
        label = register_bit_labels.get(edge, f"q_{dag.find_bit(edge).index}")
    else:
        label = register_bit_labels.get(edge, f"c_{dag.find_bit(edge).index}")
    e["label"] = label
    return e