code: def _check_reply(self, reply_type, reply):
      self.assertIsInstance(reply, dict)
      self.assertEqual(
          reply["header"]["msg_type"], reply_type + "_reply"
      )
      self.assertEqual(
          reply["parent_header"]["msg_type"], reply_type + "_request"
      )
  
imports: import os
  import platform
  import sys
  from threading import Event
  from unittest import TestCase, mock
  import pytest
  from IPython.utils.capture import capture_output
  from traitlets import DottedObjectName, Type
  from jupyter_client.client import validate_string_dict
  from jupyter_client.kernelspec import KernelSpecManager, NoSuchKernel
  from jupyter_client.manager import KernelManager, start_new_async_kernel, start_new_kernel
  from jupyter_client.threaded import ThreadedKernelClient, ThreadedZMQSocketChannel
label_desc: Use image node_id 4 for calling the TestKernelClient obj's underlying member method code with example usage: obj._check_reply(reply_type, reply) without return types