code: def cleanup(self):
      self.cleanup_called = True
  
imports: from __future__ import annotations
  from io import BytesIO
  import pytest
  from PIL import BmpImagePlugin, EpsImagePlugin, Image, ImageFile, UnidentifiedImageError, _binary, features
  from .helper import assert_image, assert_image_equal, assert_image_similar, fromstring, hopper, skip_unless_feature, tostring
label_desc: Use image node_id 2 for calling the MockPyEncoder obj's underlying member method code with example usage: obj.cleanup() without return types