code: def test_affine_transform(self):
      x = KerasTensor([20, 20, 3])
      transform = KerasTensor([8])
      out = kimage.affine_transform(x, transform)
      self.assertEqual(out.shape, (20, 20, 3))
  
imports: import math
  import numpy
  import pytest
  import scipy.ndimage
  import tensorflow
  from absl.testing import parameterized
  from keras import backend
  from keras import testing
  from keras.backend.common.keras_tensor import KerasTensor
  from keras.ops import image
label_desc: Use image node_id 2 for calling the ImageOpsStaticShapeTest obj's underlying member method code with example usage: obj.test_affine_transform() without return types