code: def check_hash_length(self, func, image, sizes=CHECK_HASH_DEFAULT):
      for hash_size in sizes:
          image_hash = func(image, hash_size=hash_size)
          emsg = "hash_size={} is not respected".format(hash_size)
          self.assertEqual(image_hash.hash.size, hash_size**2, emsg)
  
file_path: imagehash/tests/utils.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import os.path
  import unittest
  from PIL import Image
  import imagehash
label_desc: Use image node_id 3 for calling the TestImageHash obj's underlying member method code with example usage: obj.check_hash_length(func, image, sizes) without return types