code: def testRoundTripExoticAsOneLine(self):
      message = unittest_pb2.TestAllTypes()
      message.repeated_int64.append(-9223372036854775808)
      message.repeated_uint64.append(18446744073709551615)
      message.repeated_double.append(123.456)
      message.repeated_double.append(1.23e22)
      message.repeated_double.append(1.23e-18)
      message.repeated_string.append("\000\001\a\b\f\n\r\t\v\\'\"")
      message.repeated_string.append("\u00fc\ua71f")
  
      # Test as_utf8 = False.
      wire_text = text_format.MessageToString(
          message, as_one_line=True, as_utf8=False
      )
      parsed_message = unittest_pb2.TestAllTypes()
      text_format.Merge(wire_text, parsed_message)
      self.assertEquals(message, parsed_message)
  
      # Test as_utf8 = True.
      wire_text = text_format.MessageToString(
          message, as_one_line=True, as_utf8=True
      )
      parsed_message = unittest_pb2.TestAllTypes()
      text_format.Merge(wire_text, parsed_message)
      self.assertEquals(message, parsed_message)
  
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 14 for calling the TextFormatTest obj's underlying member method code with example usage: obj.testRoundTripExoticAsOneLine() without return types