code: def test_that_vision_context_raises_exception_for_unset_properties(
      mnist_visiondata_train,
  ):
      # Arrange
      context = Context(train=mnist_visiondata_train)
  
      # Act
      assert_that(
          calling(lambda: context.test),
          raises(
              DeepchecksNotSupportedError,
              r"Check is irrelevant for Datasets without test dataset",
          ),
      )
  
file_path: deepchecks/tests/vision/base/test_context.py
imports: from hamcrest import assert_that, calling, has_properties, instance_of, is_, raises
  from deepchecks.core import DatasetKind
  from deepchecks.core.errors import DatasetValidationError, DeepchecksNotSupportedError, DeepchecksValueError, ModelValidationError, ValidationError
  from deepchecks.vision.base_checks import Context
  from deepchecks.vision.vision_data import TaskType, VisionData
label_desc: Use image node_id 4 for calling a global function with example usage: test_that_vision_context_raises_exception_for_unset_properties(mnist_visiondata_train) without return types