code: def test_set_block_size_stats(self):
      Image.core.reset_stats()
      Image.core.set_blocks_max(0)
      Image.core.set_block_size(4096)
      Image.new("RGB", (256, 256))
  
      stats = Image.core.get_stats()
      assert stats["new_count"] >= 1
      assert stats["allocated_blocks"] >= 64
      if not is_pypy():
          assert stats["freed_blocks"] >= 64
  
imports: import sys
  import pytest
  from PIL import Image
  from .helper import is_pypy
label_desc: Use image node_id 6 for calling the TestCoreMemory obj's underlying member method code with example usage: obj.test_set_block_size_stats() without return types