code: def squared_hinge(y_true, y_pred):
      return model_ops.mean(
          tf.square(tf.maximum(1.0 - y_true * y_pred, 0.0)), 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 5 for calling a global function with example usage: squared_hinge(y_true, y_pred) and returns: model_ops