code: def _shape_as_list(self, tensor):
      if self.use_static_shape:
          return tensorshape_util.as_list(tensor.shape)
      else:
          return list(self.evaluate(tf.shape(tensor)))
  
imports: from absl.testing import parameterized
  import numpy
  import pandas
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import mvn_tril
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.sts.components import local_level
  from tensorflow_probability.python.sts.internal import missing_values_util
  from tensorflow_probability.python.sts.internal import util
label_desc: Use image node_id 9 for calling the _UtilityTests obj's underlying member method code with example usage: obj._shape_as_list(tensor) and returns: tensorshape_util, list