code: def _map_tuples(fn: Callable, tuples: Iterable[tuple]) -> tuple:
      return tuple(map(fn, zip(*(t for t in tuples))))
  
imports: import functools
  from typing import Callable, Iterable, Optional, Sequence
  import warnings
  from jax import numpy
  import jax.example_libraries.stax
  from ..utils.kernel import Kernel
  from ..utils.typing import InternalLayer
  from ..utils.typing import InternalLayerMasked
  from ..utils.typing import Kernels
  from .requirements import layer
  from .requirements import supports_masking
label_desc: Use image node_id 5 for calling a global function with example usage: _map_tuples(fn, tuples) and returns: tuple