<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_alarm(self, entity, alarm, criteria=None, disabled=False, label=None, name=None, metadata=None):
 """ Updates an existing alarm on the given entity. """

        return entity.update_alarm(alarm, criteria=criteria, disabled=disabled,
            label=label, name=name, metadata=metadata)