code: def testNotANumber(self):
      golden_data = (
          "\x5D\x00\x00\xC0\x7F"
          "\x61\x00\x00\x00\x00\x00\x00\xF8\x7F"
          "\xCD\x02\x00\x00\xC0\x7F"
          "\xD1\x02\x00\x00\x00\x00\x00\x00\xF8\x7F"
      )
      golden_message = unittest_pb2.TestAllTypes()
      golden_message.ParseFromString(golden_data)
      self.assertTrue(isnan(golden_message.optional_float))
      self.assertTrue(isnan(golden_message.optional_double))
      self.assertTrue(isnan(golden_message.repeated_float[0]))
      self.assertTrue(isnan(golden_message.repeated_double[0]))
  
      # The protocol buffer may serialize to any one of multiple different
      # representations of a NaN.  Rather than verify a specific representation,
      # verify the serialized string can be converted into a correctly
      # behaving protocol buffer.
      serialized = golden_message.SerializeToString()
      message = unittest_pb2.TestAllTypes()
      message.ParseFromString(serialized)
      self.assertTrue(isnan(message.optional_float))
      self.assertTrue(isnan(message.optional_double))
      self.assertTrue(isnan(message.repeated_float[0]))
      self.assertTrue(isnan(message.repeated_double[0]))
  
imports: import copy
  import math
  import operator
  import pickle
  import unittest
  from google.protobuf import unittest_import_pb2
  from google.protobuf import unittest_pb2
  from google.protobuf.internal import api_implementation
  from google.protobuf.internal import test_util
  from google.protobuf import message
label_desc: Use image node_id 9 for calling the MessageTest obj's underlying member method code with example usage: obj.testNotANumber() without return types