code: def cutoff(d, x):
      """Truncates interactions that are too far away."""
      return tf.where(d < 8, x, tf.zeros_like(x))
  
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 7 for calling a global function with example usage: cutoff(d, x) and returns: tf