code: def normalize_segmentation_maps(inputs, shapes=None):
      # TODO get rid of this deferred import
      from imgaug.augmentables.segmaps import SegmentationMapsOnImage
  
      shapes = _preprocess_shapes(shapes)
      ntype = estimate_segmaps_norm_type(inputs)
      _assert_exactly_n_shapes_partial = functools.partial(
          _assert_exactly_n_shapes,
          from_ntype=ntype,
          to_ntype="List[SegmentationMapsOnImage]",
          shapes=shapes,
      )
  
      if ntype == "None":
          return None
      if ntype in ["array[int]", "array[uint]", "array[bool]"]:
          _assert_single_array_ndim(
              inputs,
              4,
              "(N,H,W,#SegmapsPerImage)",
              "SegmentationMapsOnImage",
          )
          _assert_exactly_n_shapes_partial(n=len(inputs))
          if ntype == "array[bool]":
              return [
                  SegmentationMapsOnImage(attr_i, shape=shape)
                  for attr_i, shape in zip(inputs, shapes)
              ]
          return [
              SegmentationMapsOnImage(attr_i, shape=shape)
              for attr_i, shape in zip(inputs, shapes)
          ]
      if ntype == "SegmentationMapsOnImage":
          return [inputs]
      if ntype == "iterable[empty]":
          return None
      if ntype in [
          "iterable-array[int]",
          "iterable-array[uint]",
          "iterable-array[bool]",
      ]:
          _assert_many_arrays_ndim(
              inputs,
              3,
              "(H,W,#SegmapsPerImage)",
              "SegmentationMapsOnImage",
          )
          _assert_exactly_n_shapes_partial(n=len(inputs))
          if ntype == "iterable-array[bool]":
              return [
                  SegmentationMapsOnImage(attr_i, shape=shape)
                  for attr_i, shape in zip(inputs, shapes)
              ]
          return [
              SegmentationMapsOnImage(attr_i, shape=shape)
              for attr_i, shape in zip(inputs, shapes)
          ]
  
      assert (
          ntype == "iterable-SegmentationMapsOnImage"
      ), "Got unknown normalization type '%s'." % (ntype,)
      return inputs
  
imports: from __future__ import print_function, division, absolute_import
  import functools
  import numpy
  from ..None import imgaug
  from ..None import dtypes
  from .base import IAugmentable
label_desc: Use image node_id 9 for calling a global function with example usage: normalize_segmentation_maps(inputs, shapes) and returns: inputs, None, unknown, list, None, unknown, unknown, unknown