code: def _infer_fft_length_for_irfftn(input_tensor):
      fft_shape = input_tensor.get_shape()[-len(input_tensor.shape) :]
      fft_length = fft_shape.as_list()
      fft_length[-1] = max(0, 2 * (fft_length[-1] - 1))
      return _ops.convert_to_tensor(fft_length, _dtypes.int32)
  
imports: import re
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_spectral_ops
  from tensorflow.python.ops import manip_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import dispatch
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling a global function with example usage: _infer_fft_length_for_irfftn(input_tensor) and returns: _ops