code: def test_display_data(self):
      jsondata = dict(a=5)
      msg = self.msg(
          "display_data",
          {
              "data": {
                  "text/plain": "some text",
                  "application/json": jsondata,
              },
              "metadata": {"text/plain": {"key": "value"}},
          },
      )
      v5, v4 = self.adapt(msg)
      v4c = v4["content"]
      v5c = v5["content"]
      self.assertEqual(v5c["metadata"], v4c["metadata"])
      self.assertEqual(
          v5c["data"]["text/plain"], v4c["data"]["text/plain"]
      )
      self.assertEqual(
          v4c["data"]["application/json"], json.dumps(jsondata)
      )
  
imports: import copy
  import json
  from unittest import TestCase
  from jupyter_client.adapter import V4toV5, adapt, code_to_line
  from jupyter_client.session import Session
label_desc: Use image node_id 12 for calling the V5toV4TestCase obj's underlying member method code with example usage: obj.test_display_data() without return types