code: def test_check_data_compatibility(task):
      """Check data compatibility."""
      task = task(target="target")
      with raises(ValueError):
          task.set_metadata(gunpoint)
  
imports: import pytest
  from pytest import raises
  from sktime.benchmarking.tasks import BaseTask, TSCTask, TSRTask
  from sktime.datasets import load_gunpoint, load_shampoo_sales
label_desc: Use image node_id 2 for calling a global function with example usage: test_check_data_compatibility(task) without return types