docstr: Convert a numpy array to a TF placeholder.
  
  Args:
    ndarray: any object convertible to a numpy array via `np.asarray()`.
  
  Returns:
    placeholder: a TensorFlow `placeholder` with default value given by the
    provided `ndarray`, dtype given by `self.dtype`, and shape specified
    statically only if `self.use_static_shape` is `True`.
docstr_tok: ["Convert","a","numpy","array","to","a","TF","placeholder",".","Args",":","ndarray",":","any","object","convertible","to","a","numpy","array","via","`","np.asarray","(",")","`",".","Returns",":","placeholder",":","a","TensorFlow","`","placeholder","`","with","default","value","given","by","the","provided","`","ndarray","`",",","dtype","given","by","`","self.dtype","`",",","and","shape","specified","statically","only","if","`","self.use_static_shape","`","is","`","True","`","."]
code: def _build_tensor(self, ndarray):
      """Convert a numpy array to a TF placeholder.
  
      Args:
        ndarray: any object convertible to a numpy array via `np.asarray()`.
  
      Returns:
        placeholder: a TensorFlow `placeholder` with default value given by the
        provided `ndarray`, dtype given by `self.dtype`, and shape specified
        statically only if `self.use_static_shape` is `True`.
      """
  
      ndarray = np.asarray(ndarray).astype(self.dtype)
      if JAX_MODE:
          return ndarray
      return tf1.placeholder_with_default(
          ndarray,
          shape=ndarray.shape if self.use_static_shape else None,
      )
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.sts import decomposition
  from tensorflow_probability.python.sts.components import local_linear_trend
  from tensorflow_probability.python.sts.components import seasonal
  from tensorflow_probability.python.sts.components import sum
  from tensorflow_probability.python.sts.forecast import forecast
  from tensorflow_probability.python.sts.internal import missing_values_util
label_desc: Use image node_id 7 for calling the _DecompositionTest obj's underlying member method code with example usage: obj._build_tensor(ndarray) and returns: tf1, ndarray