code: def _normalize_axis_tuple(axis, ndim):
      if numpy.isscalar(axis):
          axis = (axis,)
  
      ret = []
      for ax in axis:
          ret.append(ax % ndim)
      return ret
  
imports: import unittest
  import numpy
  import six
  from chainer import cuda
  from chainer import functions
  from chainer import testing
  from chainer.testing import attr
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_axis_tuple(axis, ndim) and returns: ret