code: def _get_fftn_out_size(in_shape, s, last_axis, value_type):
      if value_type == "C2R":
          if (s is None) or (s[-1] is None):
              out_size = 2 * (in_shape[last_axis] - 1)
          else:
              out_size = s[-1]
      elif value_type == "R2C":
          out_size = in_shape[last_axis] // 2 + 1
      else:  # C2C
          out_size = None
      return out_size
  
imports: import functools
  import math
  import numpy
  import cupy
  from cupy.fft import config
  from cupy.fft._cache import get_plan_cache
label_desc: Use image node_id 11 for calling a global function with example usage: _get_fftn_out_size(in_shape, s, last_axis, value_type) and returns: out_size