code: def check_hash_size(
      self, func, image, binbits=CHECK_HASH_SIZE_DEFAULT
  ):
      for bit in binbits:
          with self.assertRaises(ValueError):
              func(image, bit)
  
file_path: imagehash/tests/test_colorhash.py
imports: from __future__ import absolute_import, division, print_function
  import unittest
  import imagehash
  from .utils import TestImageHash
label_desc: Use image node_id 9 for calling the Test obj's underlying member method code with example usage: obj.check_hash_size(func, image, binbits) without return types