code: def _build_shape(shape, is_static):
      if is_static:
          return shape
      input_shape = np.array(shape, dtype=np.int32)
      return tf1.placeholder_with_default(
          input_shape, shape=input_shape.shape
      )
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import scale_matvec_linear_operator
  from tensorflow_probability.python.experimental.util import deferred_module
  from tensorflow_probability.python.experimental.vi.util import trainable_linear_operators
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 4 for calling a global function with example usage: _build_shape(shape, is_static) and returns: tf1, shape