def remove_nodes_from_graph_and_dict(nodes_to_remove, gsc_SC_KM, nodes_statuses_pre_treatment):
    """Remove nodes from graph and nodes_statuses dict."""
    treated_graph = gsc_SC_KM.copy()
    nodes_statuses_post_treatment = nodes_statuses_pre_treatment.copy()
    for node_id in nodes_to_remove:
        treated_graph.remove_node(node_id)
        del nodes_statuses_post_treatment[node_id]

    return treated_graph, nodes_statuses_post_treatment