code: def compute_custom_distance(wit_id, index, callback_name, params):
      WitWidget.widgets[wit_id].compute_custom_distance(
          index, callback_name, params
      )
  
imports: import json
  import math
  import tensorflow
  from IPython import display
  from google.colab import output
  from witwidget.notebook import base
label_desc: Use image node_id 8 for calling a global function with example usage: compute_custom_distance(wit_id, index, callback_name, params) without return types