code: def RadialCutoff(R, rc):
      """Calculates radial cutoff matrix.
  
      B = batch_size, N = max_num_atoms, M = max_num_neighbors
  
      Parameters
      ----------
        R [B, N, M]: tf.Tensor
          Distance matrix.
        rc: tf.Variable
          Interaction cutoff [Angstrom].
  
      Returns
      -------
        FC [B, N, M]: tf.Tensor
          Radial cutoff matrix.
  
      """
  
      T = 0.5 * (tf.cos(np.pi * R / (rc)) + 1)
      E = tf.zeros_like(T)
      cond = tf.less_equal(R, rc)
      FC = tf.where(cond, T, E)
      return FC
  
file_path: deepchem/contrib/atomicconv/models/atomicnet_ops.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import unicode_literals
  import numpy
  import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: RadialCutoff(R, rc) and returns: FC