code: def _size_last_transform_axis(shape, s, axes):
      if s is not None:
          if s[-1] is not None:
              return s[-1]
      elif axes is not None:
          return shape[axes[-1]]
      return shape[-1]
  
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 26 for calling a global function with example usage: _size_last_transform_axis(shape, s, axes) and returns: shape, s, shape