code: def cosine_proximity(y_true, y_pred):
      y_true = model_ops.l2_normalize(y_true, axis=-1)
      y_pred = model_ops.l2_normalize(y_pred, axis=-1)
      return -model_ops.mean(y_true * y_pred, axis=-1)
  
file_path: deepchem/contrib/nn/objectives.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import unicode_literals
  from __future__ import absolute_import
  import warnings
  import tensorflow
  from deepchem.nn import model_ops
label_desc: Use image node_id 12 for calling a global function with example usage: cosine_proximity(y_true, y_pred) and returns: unknown