docstr: Convert a numpy array to a TF placeholder.
  
  Args:
    ndarray: any object convertible to a numpy array via `np.asarray()`.
    dtype: optional `dtype`.
  
  Returns:
    placeholder: a TensorFlow `placeholder` with default value given by the
    provided `ndarray`, dtype given by `self.dtype` (if not specified), 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","(",")","`",".","dtype",":","optional","`","dtype","`",".","Returns",":","placeholder",":","a","TensorFlow","`","placeholder","`","with","default","value","given","by","the","provided","`","ndarray","`",",","dtype","given","by","`","self.dtype","`","(","if","not","specified",")",",","and","shape","specified","statically","only","if","`","self.use_static_shape","`","is","`","True","`","."]
code: def _build_tensor(self, ndarray, dtype=None):
      """Convert a numpy array to a TF placeholder.
  
      Args:
        ndarray: any object convertible to a numpy array via `np.asarray()`.
        dtype: optional `dtype`.
  
      Returns:
        placeholder: a TensorFlow `placeholder` with default value given by the
        provided `ndarray`, dtype given by `self.dtype` (if not specified), and
        shape specified statically only if `self.use_static_shape` is `True`.
      """
  
      ndarray = np.asarray(ndarray).astype(
          self.dtype if dtype is None else 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.distributions import normal
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.sts import fitting
  from tensorflow_probability.python.sts import forecast
  from tensorflow_probability.python.sts.components import seasonal
  from tensorflow_probability.python.sts.components import sum
  from tensorflow_probability.python.sts.internal import missing_values_util
label_desc: Use image node_id 9 for calling the _ForecastTest obj's underlying member method code with example usage: obj._build_tensor(ndarray, dtype) and returns: tf1, ndarray