code: def setProfile(self, name):
          
          if self.name or self.useBegin:
              if self.name == name:
                  return
              raise VObjectError("This component already has a PROFILE or "
                                 "uses BEGIN.")
          self.name = name.upper()
docs: Assign a PROFILE to this unnamed component.
  
          Used by vCard, not by vCalendar.