code: def test_to_proto_success(self):
      # Test fields convert.
      owner = model_card.Owner()
      self.assertEqual(owner.to_proto(), model_card_pb2.Owner())
      owner.name = "my_name"
      self.assertEqual(
          owner.to_proto(), model_card_pb2.Owner(name="my_name")
      )
      owner.contact = "my_contact"
      self.assertEqual(
          owner.to_proto(),
          model_card_pb2.Owner(name="my_name", contact="my_contact"),
      )
  
      # Test message convert.
      model_details = model_card.ModelDetails(
          owners=[
              model_card.Owner(name="my_name", contact="my_contact")
          ]
      )
      self.assertEqual(
          model_details.to_proto(),
          model_card_pb2.ModelDetails(
              owners=[
                  model_card_pb2.Owner(
                      name="my_name", contact="my_contact"
                  )
              ]
          ),
      )
  
imports: import json
  import os
  import pkgutil
  import jsonschema
  from absl.testing import absltest
  from google.protobuf import text_format
  from model_card_toolkit import model_card
  from model_card_toolkit.proto import model_card_pb2
label_desc: Use image node_id 8 for calling the ModelCardTest obj's underlying member method code with example usage: obj.test_to_proto_success() without return types