code: def setup_class(cls):
      cls.decoder = MockPyDecoder(None)
      cls.encoder = MockPyEncoder(None)
  
      def decoder_closure(mode, *args):
          cls.decoder.__init__(mode, *args)
          return cls.decoder
  
      def encoder_closure(mode, *args):
          cls.encoder.__init__(mode, *args)
          return cls.encoder
  
      Image.register_decoder("MOCK", decoder_closure)
      Image.register_encoder("MOCK", encoder_closure)
  
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 1 for calling the CodecsTest obj's underlying member method code with example usage: obj.setup_class(cls) and returns: cls, cls