code: def _make_class_unpicklable(cls):
      
      def _break_on_call_reduce(self, protocol=None):
          raise TypeError('%r cannot be pickled' % self)
      cls.__reduce_ex__ = _break_on_call_reduce
      cls.__module__ = '<unknown>'
docs: Make the given class un-picklable.