code: def test_unicode_blocks():
      from whoosh.support.unicode import blocks, blockname, blocknum
  
      assert blockname(u("a")) == "Basic Latin"
      assert blockname(unichr(0x0B80)) == "Tamil"
      assert blockname(unichr(2048)) is None
      assert blocknum(u("a")) == 0
      assert blocknum(unichr(0x0B80)) == 22
      assert blocknum(unichr(2048)) is None
      assert (
          blocknum(u("a")) == blocks.Basic_Latin
      )  # @UndefinedVariable
      assert blocknum(unichr(0x0B80)) == blocks.Tamil
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, qparser
  from whoosh.compat import b, u, unichr
  from whoosh.compat import dumps
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 17 for calling a global function with example usage: test_unicode_blocks() without return types