code: def _test_translate(self, x, y, epsilonscale):
      im = self._test_image()
  
      size_up = int(round(im.width + x)), int(round(im.height + y))
      matrix_up = [1, 0, -x, 0, 1, -y, 0, 0]
      matrix_down = [1, 0, x, 0, 1, y, 0, 0]
  
      for resample, epsilon in [
          (Image.NEAREST, 0),
          (Image.BILINEAR, 1.5),
          (Image.BICUBIC, 1),
      ]:
          transformed = im.transform(
              size_up, self.transform, matrix_up, resample
          )
          transformed = transformed.transform(
              im.size, self.transform, matrix_down, resample
          )
          assert_image_similar(transformed, im, epsilon * epsilonscale)
  
imports: import math
  import pytest
  from PIL import Image, ImageTransform
  from .helper import assert_image_equal, assert_image_similar, hopper
label_desc: Use image node_id 13 for calling the TestImageTransformAffine obj's underlying member method code with example usage: obj._test_translate(x, y, epsilonscale) without return types