code: def adapt(self, msg, version=None):
      original = copy.deepcopy(msg)
      adapted = adapt(msg, version or self.to_version)  # type:ignore
      return original, adapted
  
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 2 for calling the AdapterTest obj's underlying member method code with example usage: obj.adapt(msg, version) and returns: original,  adapted