def METHOD_NAME(
    self, cells: Iterable[Tuple[str, str, nn.Cell]], return_layers: Dict[str, int]
) -> Tuple[nn.SequentialCell, Dict[str, int]]:
    layers = OrderedDict()
    updated_return_layers = dict()
    remaining = set(return_layers.keys())
    for new_name, old_name, module in cells:
        layers[new_name] = module
        if old_name in remaining:
            updated_return_layers[new_name] = return_layers[old_name]
            remaining.remove(old_name)
        if not remaining:
            break
    net = nn.SequentialCell(layers)
    return net, updated_return_layers