def ValidateUserMetadata(metadata):
    'Validates if user-specified metadata.\n\n  Checks if it contains values which may conflict with container deployment.\n  Args:\n    metadata: user-specified VM metadata.\n\n  Raises:\n    InvalidMetadataKeyException: if there is conflict with user-provided\n    metadata\n  '
    for entry in metadata.items:
        if (entry.key in [USER_DATA_KEY, CONTAINER_MANIFEST_KEY, GKE_DOCKER]):
            raise InvalidMetadataKeyException(entry.key)
Validates if user-specified metadata.

Checks if it contains values which may conflict with container deployment.
Args:
  metadata: user-specified VM metadata.

Raises:
  InvalidMetadataKeyException: if there is conflict with user-provided
  metadata
def ValidateUserMetadata(metadata):
    'Validates if user-specified metadata.\n\n  Checks if it contains values which may conflict with container deployment.\n  Args:\n    metadata: user-specified VM metadata.\n\n  Raises:\n    InvalidMetadataKeyException: if there is conflict with user-provided\n    metadata\n  '
    for entry in metadata.items:
        if (entry.key in [USER_DATA_KEY, CONTAINER_MANIFEST_KEY, GKE_DOCKER]):
            raise InvalidMetadataKeyException(entry.key)