code: def test_formats():
      xc = "XC"
      assert formats(xc) == [xc]
      with raises(TypeError):
          formats(0xDEADBEEF)
  
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 5 for calling a global function with example usage: test_formats() without return types