code: def _prefer_static_concat_shape(first_shape, second_shape_int_list):
      """Concatenate a shape with a list of integers as statically as possible.
  
      Args:
        first_shape: `TensorShape` or `Tensor` instance. If a `TensorShape`,
          `first_shape.is_fully_defined()` must return `True`.
        second_shape_int_list: `list` of scalar integer `Tensor`s.
  
      Returns:
        `Tensor` representing concatenating `first_shape` and
          `second_shape_int_list` as statically as possible.
      """
      second_shape_int_list_static = [
          ops.get_static_value(s) for s in second_shape_int_list
      ]
      if isinstance(first_shape, tensor_shape.TensorShape) and all(
          s is not None for s in second_shape_int_list_static
      ):
          return first_shape.concatenate(second_shape_int_list_static)
      return prefer_static.concat(
          [first_shape, second_shape_int_list], axis=0
      )
  
imports: from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy import dtype
  from tensorflow_probability.python.internal.backend.numpy import errors
  from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy.gen import tensor_shape
  from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy import numpy_array
  from tensorflow_probability.python.internal.backend.numpy import debugging
  from tensorflow_probability.python.internal.backend.numpy import control_flow
  from tensorflow_probability.python.internal.backend.numpy import numpy_math
  from tensorflow_probability.python.internal.backend.numpy import linalg_impl
  from tensorflow_probability.python.internal.backend.numpy.gen import linear_operator
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import linalg_impl
  from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy.gen import tensor_shape
  from tensorflow_probability.python.internal.backend.numpy import private
label_desc: Use image node_id 2 for calling a global function with example usage: _prefer_static_concat_shape(first_shape, second_shape_int_list) and returns: prefer_static, first_shape