code: def test_vision_context_helper_functions(mnist_visiondata_train):
      # Arrange
      context = Context(train=mnist_visiondata_train)
  
      # Act & Assert
      assert_that(context.have_test(), is_(False))
      assert_that(
          context.assert_task_type(TaskType.CLASSIFICATION), is_(True)
      )
      assert_that(
          calling(context.assert_task_type).with_args(
              TaskType.OBJECT_DETECTION
          ),
          raises(
              DeepchecksNotSupportedError,
              "Check is irrelevant for task of type TaskType.CLASSIFICATION",
          ),
      )
  
      assert_that(
          context.get_data_by_kind(DatasetKind.TRAIN),
          instance_of(VisionData),
      )
      assert_that(
          calling(context.get_data_by_kind).with_args(DatasetKind.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 8 for calling a global function with example usage: test_vision_context_helper_functions(mnist_visiondata_train) without return types