code: def cosine_distance(x, y):
      return K.sum(
          tf.nn.relu(1 + tf.keras.losses.cosine_similarity(x, y))
      )
  
imports: import tensorflow
  from tensorflow.keras import backend
label_desc: Use image node_id 4 for calling a global function with example usage: cosine_distance(x, y) and returns: K