code: def test_unsupported_metric(x1, x2):
      with pytest.raises(Exception):
          calculate_distance(x1, x2, metric="unsupported_metric")
  
file_path: pykale/tests/utils/test_distance.py
imports: import pytest
  import torch
  from kale.utils.distance import calculate_distance, DistanceMetric
label_desc: Use image node_id 6 for calling a global function with example usage: test_unsupported_metric(x1, x2) without return types