code: def jaccard_score(prediction, groundtruth):
      pflat = prediction.flatten()
      gflat = groundtruth.flatten()
      return (1 - spatial.distance.jaccard(pflat, gflat)) * 100.0
  
file_path: medicaltorch/medicaltorch/metrics.py
imports: from collections import defaultdict
  from scipy import spatial
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: jaccard_score(prediction, groundtruth) and returns: unknown