code: def get_decoder(self):
      decoder = MockPyDecoder(None)
  
      def closure(mode, *args):
          decoder.__init__(mode, *args)
          return decoder
  
      Image.register_decoder("MOCK", closure)
      return decoder
  
imports: from io import BytesIO
  import pytest
  from PIL import BmpImagePlugin, EpsImagePlugin, Image, ImageFile, _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 TestPyDecoder obj's underlying member method code with example usage: obj.get_decoder() and returns: decoder, decoder