code: def test_distance(
      reference_perturbed: Tuple[ep.Tensor, ep.Tensor], p: float
  ) -> None:
      reference, perturbed = reference_perturbed
  
      actual = distances[p](reference, perturbed).numpy()
  
      diff = perturbed.numpy() - reference.numpy()
      diff = diff.reshape((len(diff), -1))
      desired = np.linalg.norm(diff, ord=p, axis=-1)
  
      np.testing.assert_allclose(actual, desired, rtol=1e-5)
  
file_path: foolbox/tests/test_distances.py
imports: from typing import Tuple, Any, Dict, Callable, TypeVar
  import numpy
  import pytest
  import foolbox
  import eagerpy
label_desc: Use image node_id 5 for calling a global function with example usage: test_distance(reference_perturbed, p) without return types