def _validate_environment_settings(settings):
    """Helper function to validate the provided environment settings."""
    if settings.episode_length_seconds <= 0.0:
        raise ValueError('episode_length_seconds must have a positive value.')
    if settings.num_action_repeats <= 0:
        raise ValueError('num_action_repeats must have a positive value.')
    if settings.width <= 0 or settings.height <= 0:
        raise ValueError('width and height must have a positive value.')
