code: def test_resize_to():
      lena = mh.demos.load("lena")
      im = mh.resize.resize_rgb_to(lena, [256, 256])
      assert im.shape == (256, 256, 3)
      im = im.max(2)
      im = mh.resize.resize_to(im, [512, 256])
      assert im.shape == (512, 256)
  
imports: import mahotas
  from mahotas import imresize
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_resize_to() without return types