human
Complete this python program:
def _AddClearMethod(message_descriptor, cls):
assistant
#Here is the Python code you requested.

    """Helper for _AddMessageMethods().
    """
    def Clear(self):
        self._fields = {}
        self._unknown_fields = ()
        self._Modified()
    cls.Clear = Clear