code: def iresnet(
      num_blocks: int, **block_kwargs
  ) -> ComposedBijectionHybridBlock:
      """
  
      Parameters
      ----------
      num_blocks
          number of iResnet blocks
      block_kwargs
          keyword arguments given to initialize each block object
  
      Returns
      -------
  
      """
      return ComposedBijectionHybridBlock(
          [
              InvertibleResnetHybridBlock(**block_kwargs)
              for _ in range(num_blocks)
          ]
      )
  
file_path: gluonts/src/gluonts/mx/distribution/iresnet.py
imports: import mxnet
  from gluonts.core.component import validated
  from gluonts.mx import Tensor
  from gluonts.mx.util import _broadcast_param
  from gluonts.mx.block.snmlp import SNMLPBlock
  from gluonts.mx.distribution.distribution import getF
  from gluonts.mx.distribution.bijection import BijectionHybridBlock, ComposedBijectionHybridBlock
label_desc: Use image node_id 2 for calling a global function with example usage: iresnet(num_blocks) and returns: ComposedBijectionHybridBlock