code: def time_affine_transform(self, shape, order, mode):
      if self.x.ndim == 2:
          matrix = self.matrix_2d
      else:
          matrix = self.matrix_3d
      affine_transform(self.x, matrix, order=order, mode=mode)
  
file_path: scipy/benchmarks/benchmarks/ndimage_interpolation.py
imports: import numpy
  from .common import Benchmark
label_desc: Use image node_id 2 for calling the NdimageInterpolation obj's underlying member method code with example usage: obj.time_affine_transform(shape, order, mode) without return types