code: def test_clone():
      """Clones the existing image."""
      funcs = (lambda img: Image(image=img), lambda img: img.clone())
      with Image(filename="rose:") as img:
          for func in funcs:
              with func(img) as cloned:
                  assert img.wand is not cloned.wand
                  assert img.size == cloned.size
              with raises(ClosedImageError):
                  cloned.wand
      with raises(ClosedImageError):
          img.wand
  
imports: import codecs
  import io
  import os
  import os.path
  import shutil
  import struct
  import sys
  import tempfile
  from pytest import mark, raises
  from wand.image import ClosedImageError, Image
  from wand.color import Color
  from wand.font import Font
label_desc: Use image node_id 16 for calling a global function with example usage: test_clone() without return types