code: def check_symmetry(method, h1, h2):
      """symmetry test"""
  
      d12 = method(h1, h2)
      d21 = method(h2, h1)
  
      assert within_tolerance(d12, d21)
  
file_path: medpy/tests/metric_/histogram.py
imports: import numpy
  from hypothesis import given, strategies, assume, Verbosity, note, event
  from hypothesis import settings
  from medpy.metric import histogram
label_desc: Use image node_id 5 for calling a global function with example usage: check_symmetry(method, h1, h2) without return types