@classmethod
def load(cls, context, compiled_net, batch_index):
    """Add runtime information to instruction nodes.

        Parameters
        ----------
        context : ComputationContext
        compiled_net : nx.DiGraph
        batch_index : int

        Returns
        -------
        net : nx.DiGraph
            Loaded net, which is the `compiled_net` that has been loaded with data that
            can depend on the batch_index.

        """
    meta_dict = {'batch_index': batch_index, 'submission_index': context.
        num_submissions, 'master_seed': context.seed, 'model_name':
        compiled_net.graph['name']}
    details = dict(_batch_size=context.batch_size, _meta=meta_dict)
    for node, v in details.items():
        if compiled_net.has_node(node):
            compiled_net.node[node]['output'] = v
    return compiled_net
