code: def test_model_card_common_properties(self):
      modelcard = ModelCard.from_dict(self.inputs_dict)
      self.assertTrue(hasattr(modelcard, "model_details"))
      self.assertTrue(hasattr(modelcard, "intended_use"))
      self.assertTrue(hasattr(modelcard, "factors"))
      self.assertTrue(hasattr(modelcard, "metrics"))
      self.assertTrue(hasattr(modelcard, "evaluation_data"))
      self.assertTrue(hasattr(modelcard, "training_data"))
      self.assertTrue(hasattr(modelcard, "quantitative_analyses"))
      self.assertTrue(hasattr(modelcard, "ethical_considerations"))
      self.assertTrue(hasattr(modelcard, "caveats_and_recommendations"))
  
file_path: transformers/tests/utils/test_model_card.py
imports: import json
  import os
  import tempfile
  import unittest
  from transformers.modelcard import ModelCard
label_desc: Use image node_id 2 for calling the ModelCardTester obj's underlying member method code with example usage: obj.test_model_card_common_properties() without return types