code: def _get_positive_axis(axis, ndims):
      """Normalize axis` to be positive."""
      if axis >= 0:
          return axis
      elif ndims is None:
          raise ValueError(
              "axis may not be negative if data is ragged and "
              "data.ndims is not statically known."
          )
      else:
          return axis + ndims
  
file_path: text/tensorflow_text/python/ops/pad_along_dimension_op.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.ragged import ragged_tensor
label_desc: Use image node_id 2 for calling a global function with example usage: _get_positive_axis(axis, ndims) and returns: axis, unknown