code: def get_patch_from_uid(self, uid):
          
  
          for name, patch in self:
              if patch.uid == uid:
                  return patch
docs: Returns the patch with given uid.
  
          :param uid: Patch uid.
          :type uid: unicode
          :return: Patch.
          :rtype: Patch