def METHOD_NAME(image_name, is_valid):
    if is_valid:
        validate_container_image_name(image_name)
    else:
        with pytest.raises(ValidationError):
            validate_container_image_name(image_name)