code: def test_version():
      """Test version strings."""
      match = re.match(
          r"^ImageMagick\s+\d+\.\d+\.\d+(?:-\d+)?", MAGICK_VERSION
      )
      assert match
      assert isinstance(MAGICK_VERSION_INFO, tuple)
      assert (
          len(MAGICK_VERSION_INFO)
          == match.group(0).count(".") + match.group(0).count("-") + 1
      )
      assert all(isinstance(v, int) for v in MAGICK_VERSION_INFO)
      assert isinstance(MAGICK_VERSION_NUMBER, numbers.Integral)
      assert isinstance(MAGICK_RELEASE_DATE, datetime.date)
      date_strings = (
          MAGICK_RELEASE_DATE.strftime("%Y-%m-%d"),
          MAGICK_RELEASE_DATE.strftime("%Y%m%d"),
      )
      assert MAGICK_RELEASE_DATE_STRING in date_strings
  
file_path: wand/tests/misc_test.py
imports: import datetime
  import numbers
  import re
  from pytest import mark, raises
  from wand.version import MAGICK_VERSION, MAGICK_VERSION_INFO, MAGICK_VERSION_NUMBER, MAGICK_RELEASE_DATE, MAGICK_RELEASE_DATE_STRING, QUANTUM_DEPTH, configure_options, fonts, formats
label_desc: Use image node_id 1 for calling a global function with example usage: test_version() without return types