code: def draft_roundtrip(in_mode, in_size, req_mode, req_size):
      im = Image.new(in_mode, in_size)
      data = tostring(im, "JPEG")
      im = fromstring(data)
      mode, box = im.draft(req_mode, req_size)
      scale, _ = im.decoderconfig
      assert box[:2] == (0, 0)
      assert (im.width - scale) < box[2] <= im.width
      assert (im.height - scale) < box[3] <= im.height
      return im
  
imports: from PIL import Image
  from .helper import fromstring, skip_unless_feature, tostring
label_desc: Use image node_id 1 for calling a global function with example usage: draft_roundtrip(in_mode, in_size, req_mode, req_size) and returns: im