code: def cleanwrap(func):
      
  
      def enc(self, *args, **kwargs):
          """ Send each item to _cleanup() """
          return (func(self, item, **kwargs) for item in args)
  
      return enc
docs: Wrapper for Zotero._cleanup