code: def test_vision_context_initialization_with_datasets_from_different_tasks(
      mnist_visiondata_train, coco_visiondata_train
  ):
      # Assert
      assert_that(
          calling(Context).with_args(
              train=coco_visiondata_train, test=mnist_visiondata_train
          ),
          raises(
              DatasetValidationError,
              r"Cannot compare datasets with different task types: object_detection and classification",
          ),
      )
  
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 3 for calling a global function with example usage: test_vision_context_initialization_with_datasets_from_different_tasks(mnist_visiondata_train, coco_visiondata_train) without return types