code: def _make_list_or_1d_tensor(values):
      """Return a list (preferred) or 1d Tensor from values, if values.ndims < 2."""
      values = ps.convert_to_shape_tensor(values, name="values")
      values_ = tf.get_static_value(values)
  
      # Static didn't work.
      if values_ is None:
          # Cheap way to bring to at least 1d.
          return values + tf.zeros([1], dtype=values.dtype)
  
      # Static worked!
      if values_.ndim > 1:
          raise ValueError(
              "values had > 1 dim: {}".format(values_.shape)
          )
      # Cheap way to bring to at least 1d.
      values_ = values_ + np.zeros([1], dtype=values_.dtype)
      return list(values_)
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math.generic import reduce_logmeanexp
label_desc: Use image node_id 18 for calling a global function with example usage: _make_list_or_1d_tensor(values) and returns: list, unknown