code: def invert_normalize_heatmaps(heatmaps, heatmaps_old):
      ntype = estimate_heatmaps_norm_type(heatmaps_old)
      if ntype == "None":
          assert heatmaps is None, (
              "Expected (normalized) 'heatmaps' to be None due (unnormalized) "
              "'heatmaps_old' being None. Got type %s instead."
              % (type(heatmaps),)
          )
          return heatmaps
      if ntype == "array[float]":
          assert len(heatmaps) == heatmaps_old.shape[0], (
              "Expected as many heatmaps after normalization as before "
              "normalization. Got %d (after) and %d (before)."
              % (len(heatmaps), heatmaps_old.shape[0])
          )
          input_dtype = heatmaps_old.dtype
          return restore_dtype_and_merge(
              [hm_i.arr_0to1 for hm_i in heatmaps], input_dtype
          )
      if ntype == "HeatmapsOnImage":
          assert len(heatmaps) == 1, (
              "Expected as many heatmaps after normalization as before "
              "normalization. Got %d (after) and %d (before)."
              % (len(heatmaps), 1)
          )
          return heatmaps[0]
      if ntype == "iterable[empty]":
          assert heatmaps is None, (
              "Expected heatmaps after normalization to be None, due to the "
              "heatmaps before normalization being an empty iterable. "
              "Got type %s instead." % (type(heatmaps),)
          )
          return []
      if ntype == "iterable-array[float]":
          nonempty, _, _ = find_first_nonempty(heatmaps_old)
          input_dtype = nonempty.dtype
          return [
              restore_dtype_and_merge(hm_i.arr_0to1, input_dtype)
              for hm_i in heatmaps
          ]
  
      assert (
          ntype == "iterable-HeatmapsOnImage"
      ), "Got unknown normalization type '%s'." % (ntype,)
      return heatmaps
  
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 16 for calling a global function with example usage: invert_normalize_heatmaps(heatmaps, heatmaps_old) and returns: heatmaps, heatmaps, restore_dtype_and_merge, heatmaps, list, unknown