code: def clean_meta(self, meta):
          
          if not self.verbose_metadata:
              default_kernel_name = (self.default_kernel_name or
                                     self._km.kernel_name)
  
              if (meta.get("kernelspec", {})
                      .get("name", None) == default_kernel_name):
                  del meta["kernelspec"]
                  meta.pop("language_info", None)
  
          return meta
docs: Removes unwanted metadata
  
          Parameters
          ----------
  
          meta : dict
              Notebook metadata.