code: def restore_dtype_and_merge(arr, input_dtype):
      if isinstance(arr, list):
          arr = [
              restore_dtype_and_merge(arr_i, input_dtype)
              for arr_i in arr
          ]
          shapes = [arr_i.shape for arr_i in arr]
          if len(set(shapes)) == 1:
              arr = np.array(arr)
  
      if ia.is_np_array(arr):
          arr = iadt.restore_dtypes_(arr, input_dtype)
      return arr
  
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 32 for calling a global function with example usage: restore_dtype_and_merge(arr, input_dtype) and returns: arr