def METHOD_NAME(self, nb: NotebookNode, resources: ResourcesDict) -> Tuple[NotebookNode, ResourcesDict]:
    language = nb.metadata.get("kernelspec", {}).get("language", "python")
    if language not in self.code_stub:
        raise ValueError(
            "language '{}' has not been specified in "
            "ClearSolutions.code_stub".format(language))
    resources["language"] = language
    nb, resources = super(ClearSolutions, self).METHOD_NAME(nb, resources)
    if 'celltoolbar' in nb.metadata:
        del nb.metadata['celltoolbar']
    return nb, resources