code: def test_count_error(different_lengths):
      """Test metric."""
      cp_true, cp_pred = different_lengths
      assert count_error(cp_true, cp_pred) == 5.0
  
file_path: sktime/sktime/performance_metrics/tests/test_segmentation_metrics.py
imports: import pytest
  from sktime.performance_metrics.annotation.metrics import count_error, hausdorff_error, prediction_ratio
label_desc: Use image node_id 6 for calling a global function with example usage: test_count_error(different_lengths) without return types