code: def _lower_complex_irfftn(op: Operation):
      real_data = op.data.real
      imag_data = op.data.imag
      shapes, dims = fft_canonicalize_shapes_dims(
          real_data, op.shapes, op.dims, c2r=True
      )
  
      # For all but last dim/shape, do N-D IFFT.
      for shape, dim in zip(shapes[:-1], dims[:-1]):
          real_data, imag_data = _fft_1d(
              real_data,
              imag_data,
              n=mb.const(val=shape, before_op=op),
              dim=mb.const(val=dim, before_op=op),
              norm=op.norm,
              before_op=op,
              inverse=True,
          )
  
      # For the last dim/shape, do 1-D IRFFT.
      n: Var = mb.const(val=shapes[-1], before_op=op)
      dim: Var = mb.const(val=dims[-1], before_op=op)
      real_data, imag_data = _restore_conj(
          input_data=_wrap_complex_output(
              op.outputs[0], real_data, imag_data
          ),
          n=n,
          dim=dim,
          before_op=op,
      )
      real_data, imag_data = _fft_1d(
          real_data,
          imag_data,
          n,
          dim,
          op.norm,
          before_op=op,
          inverse=True,
      )
      real_data = _resize_data(
          real_data, dims=(dim.val,), sizes=(n.val,), before_op=op
      )
  
      return real_data
  
imports: import functools
  from typing import Callable, Dict, Optional, Tuple
  import numpy
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.operation import Operation
  from coremltools.converters.mil.mil.ops.defs.complex_dialect_ops import fft_canonicalize_length_dim, fft_canonicalize_shapes_dims
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
  from coremltools.converters.mil.mil.passes.helper import block_context_manager
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
  from coremltools.converters.mil.mil.var import ComplexVar, Var
label_desc: Use image node_id 18 for calling a global function with example usage: _lower_complex_irfftn(op) and returns: real_data