def create_node_coverage(graph, reference_coverage):
    """
    Create node coverage for a terminal graph given a reference coverage consisting of node_ids.
    """

    coverage = ['0'] * len(reference_coverage)
    graph_node_ids = set(node.node_id for node in graph.nodes)

    for index, node_id in enumerate(reference_coverage):
        if node_id in graph_node_ids:
            coverage[index] = '1'

    return tuple(coverage)