code: def extended_jaccard_dist(x, y, pw=False):
      score = dot_dist(x, y, pw)
  
      x = nd.norm(x, ord=2, axis=-1) ** 2
      y = nd.norm(y, ord=2, axis=-1) ** 2
      if pw is False:
          x = x.expand_dims(axis=1)
          y = y.expand_dims(axis=0)
  
      return score / (x + y - score)
  
imports: import os
  import numpy
  import mxnet
  from mxnet import gluon
  from mxnet import ndarray
  from .score_fun import *
  from ..None import *
label_desc: Use image node_id 8 for calling a global function with example usage: extended_jaccard_dist(x, y, pw) and returns: unknown