code: def register(f: F) -> F:
      data[f.__name__] = f
      return f
  
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 1 for calling a global function with example usage: register(f) and returns: f