code: def compute_new_basis_tensor(f, x, basis):
      # TODO(b/197680518): Add special handling for different kind of bases
      # and `LinearOperator`s in order to be more efficient. For instance, we may be
      # able to avoid densifying the basis in some circumstances.
      def compute_basis(b):
          return _jvp(f, x, b)
  
      return tf.vectorized_map(compute_basis, basis.to_dense())
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 3 for calling a global function with example usage: compute_new_basis_tensor(f, x, basis) and returns: tf, _jvp