code: def test_validated():
      x = Test()
      x.validated = 66
      with pytest.raises(ValueError):
          x.validated = 23
  
file_path: sagemaker-python-sdk/tests/unit/test_hyperparameter.py
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.amazon.hyperparameter import Hyperparameter
label_desc: Use image node_id 5 for calling a global function with example usage: test_validated() without return types