code: def CompareToGoldenLines(self, text, golden_lines):
      actual_lines = text.splitlines(1)
      self.assertEqual(
          golden_lines,
          actual_lines,
          "Text doesn't match golden.  Diff:\n"
          + "".join(difflib.ndiff(golden_lines, actual_lines)),
      )
  
imports: import difflib
  import re
  import unittest
  from google.protobuf import text_format
  from google.protobuf.internal import test_util
  from google.protobuf import unittest_pb2
  from google.protobuf import unittest_mset_pb2
label_desc: Use image node_id 4 for calling the TextFormatTest obj's underlying member method code with example usage: obj.CompareToGoldenLines(text, golden_lines) without return types