code: def hbond(d):
      """Computes hydrogen bond term."""
      where = tf.where(d < 0, (1.0 / 0.7) * (0 - d), tf.zeros_like(d))
      return tf.where(d < -0.7, tf.ones_like(d), where)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import unicode_literals
  import warnings
  import numpy
  import tensorflow
  from deepchem.models import Model
  from deepchem.nn import model_ops
  import deepchem.utils.rdkit_util
label_desc: Use image node_id 12 for calling a global function with example usage: hbond(d) and returns: tf