def METHOD_NAME(cls):
    """Ensures that all of the types given as inputs and outputs are
    validators."""
    if cls.INPUTS:
        for key, val in cls.INPUTS.__dict__.items():
            if not isinstance(val, SageMakerComponentInputValidator):
                raise ValueError(
                    f"Input {key} is not of type {SageMakerComponentInputValidator.__name__}"
                )
    if cls.OUTPUTS:
        for key, val in cls.OUTPUTS.__dict__.items():
            if not isinstance(val, SageMakerComponentOutputValidator):
                raise ValueError(
                    f"Output {key} is not of type {SageMakerComponentOutputValidator.__name__}"
                )
    pass