code: def _norm_axis(axis):
      if isinstance(axis, int):
          return axis, True
      if isinstance(axis, Iterable):
          axis = sorted(tuple(axis))
          if len(axis) == 1:
              return axis[0], True
          return axis, False
  
      assert axis is None
      return None, False
  
imports: import itertools
  import operator
  import tempfile
  from collections.abc import Iterable
  import numpy
  from ...None import opcodes
  from ...serialization.serializables import AnyField, BoolField, StringField, TupleField, SliceField
  from ..array_utils import device, as_same_device
  from ..utils import validate_axis, unify_chunks
  from ..datasource import tensor
  from ..operands import TensorOperand, TensorOperandMixin
  from ..indexing.slice import TensorSlice
label_desc: Use image node_id 2 for calling a global function with example usage: _norm_axis(axis) and returns: None,  False, axis,  True, axis,  False, axis,  True