code: def create_interpreter(self):
      def mini_interpreter(np_array):
          self.assertEqual(np_array.shape, (10, 1, 20))
          return False
  
      return mini_interpreter
  
file_path: NiftyNet/tests/handler_network_output_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.engine.application_iteration import IterationMessageGenerator
  from niftynet.engine.application_variables import NETWORK_OUTPUT
  from tests.application_driver_test import get_initialised_driver
  from niftynet.engine.signal import SESS_STARTED
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the EventConsoleTest obj's underlying member method code with example usage: obj.create_interpreter() and returns: mini_interpreter, False