code: def resize_tiled(self, im, dst_size, xtiles, ytiles):
      def split_range(size, tiles):
          scale = size / tiles
          for i in range(tiles):
              yield (int(round(scale * i)), int(round(scale * (i + 1))))
  
      tiled = Image.new(im.mode, dst_size)
      scale = (im.size[0] / tiled.size[0], im.size[1] / tiled.size[1])
  
      for y0, y1 in split_range(dst_size[1], ytiles):
          for x0, x1 in split_range(dst_size[0], xtiles):
              box = (
                  x0 * scale[0],
                  y0 * scale[1],
                  x1 * scale[0],
                  y1 * scale[1],
              )
              tile = im.resize((x1 - x0, y1 - y0), Image.BICUBIC, box)
              tiled.paste(tile, (x0, y0))
      return tiled
  
imports: from contextlib import contextmanager
  import pytest
  from PIL import Image, ImageDraw
  from .helper import assert_image_equal, assert_image_similar, hopper, mark_if_feature_version
label_desc: Use image node_id 2 for calling the TestCoreResampleBox obj's underlying member method code with example usage: obj.resize_tiled(im, dst_size, xtiles, ytiles) and returns: tiled