<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def IsValidForDescriptor(self, message_descriptor):
 """Checks whether the FieldMask is valid for Message Descriptor."""

    for path in self.paths:
      if not _IsValidPath(message_descriptor, path):
        return False
    return True