code: def validate_vision_data_compatibility(first, second) -> None:
      """Validate that two vision datasets are compatible.
  
      Raises:
          DeepchecksValueError: if the datasets are not compatible
      """
      # TODO: add more validations
      if first.task_type != second.task_type:
          raise DatasetValidationError(
              "Cannot compare datasets with different task types: "
              f"{first.task_type.value} and {second.task_type.value}"
          )
  
imports: import random
  import sys
  import typing
  from collections import Counter
  from enum import Enum
  from numbers import Number
  import numpy
  from typing_extensions import NotRequired, TypedDict
  from deepchecks.core.errors import DatasetValidationError
  from deepchecks.utils.logger import get_logger
label_desc: Use image node_id 9 for calling a global function with example usage: validate_vision_data_compatibility(first, second) without return types