code: def _ConvertAnnotations(self, annotations):
        
        flags = 0
        if annotations:
           for annotation in annotations:
              flags |= self._mapFlags.get(annotation.name, 0)
        return flags
docs: Convert annotations to pyVmomi flags