code: def test_complete_request(self):
      msg = self.msg(
          "complete_request",
          {
              "text": "a.is",
              "line": "foo = a.is",
              "block": None,
              "cursor_pos": 10,
          },
      )
      v4, v5 = self.adapt(msg)
      v4c = v4["content"]
      v5c = v5["content"]
      for key in ("text", "line", "block"):
          self.assertNotIn(key, v5c)
      self.assertEqual(v5c["cursor_pos"], v4c["cursor_pos"])
      self.assertEqual(v5c["code"], v4c["line"])
  
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 7 for calling the V4toV5TestCase obj's underlying member method code with example usage: obj.test_complete_request() without return types