code: def _fix_axes(tensors, axes, allow_negative):
      """Makes all axes positive and checks for out of bound errors."""
      axes = [
          axis + tensor.shape.ndims if axis < 0 else axis
          for tensor, axis in zip(tensors, axes)
      ]
      if not all(
          (
              (allow_negative or (not allow_negative and axis >= 0))
              and axis < tensor.shape.ndims
          )
          for tensor, axis in zip(tensors, axes)
      ):
          rank_axis_pairs = list(
              zip([tensor.shape.ndims for tensor in tensors], axes)
          )
          raise ValueError(
              "Some axes are out of bounds. Given rank-axes pairs: {}".format(
                  [pair for pair in rank_axis_pairs]
              )
          )
      return axes
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from typing import Any, List, Optional, Tuple, Union
  import numpy
  import six
  from six.moves import range
  from six.moves import zip
  import tensorflow
label_desc: Use image node_id 10 for calling a global function with example usage: _fix_axes(tensors, axes, allow_negative) and returns: axes