code: def _make_static_axis_non_negative_list(axis, ndims):
      """Convert possibly negatively indexed axis to non-negative list of ints.
  
      Args:
        axis:  Integer Tensor.
        ndims:  Number of dimensions into which axis indexes.
  
      Returns:
        A list of non-negative Python integers.
  
      Raises:
        ValueError: If `axis` is not statically defined.
      """
      axis = ps.non_negative_axis(axis, ndims)
  
      axis_const = tf.get_static_value(axis)
      if axis_const is None:
          raise ValueError(
              "Expected argument `axis` to be statically available. "
              "Found: {}.".format(axis)
          )
  
      # Make at least 1-D.
      axis = axis_const + np.zeros([1], dtype=axis_const.dtype)
  
      return list(int(dim) for dim in axis)
  
file_path: probability/tensorflow_probability/python/stats/quantiles.py
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
label_desc: Use image node_id 9 for calling a global function with example usage: _make_static_axis_non_negative_list(axis, ndims) and returns: list