class_docstr: Tests correctness of the cumsum bijector.
class_docstr_tok: ["Tests","correctness","of","the","cumsum","bijector","."]
code: def _build_tensor(self, ndarray, dtype=None):
      # Enforce parameterized dtype and static/dynamic testing.
      ndarray = np.asarray(ndarray).astype(
          dtype if dtype is not None else self.dtype
      )
      return tf1.placeholder_with_default(
          ndarray,
          shape=ndarray.shape if self.use_static_shape else None,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/cumsum_test.py
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import cumsum
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 7 for calling the _CumsumBijectorTest obj's underlying member method code with example usage: obj._build_tensor(ndarray, dtype) and returns: tf1