code: def hausdorff_score(prediction, groundtruth):
      return spatial.distance.directed_hausdorff(
          prediction, groundtruth
      )[0]
  
file_path: medicaltorch/medicaltorch/metrics.py
imports: from collections import defaultdict
  from scipy import spatial
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: hausdorff_score(prediction, groundtruth) and returns: spatial