    def test_init_model_card_info_obj(self):
        @Model.register("fake-model-3")
        class FakeModel(Model):
            """
            This is a fake model with a docstring.

            # Parameters

            fake_param1: str
            fake_param2: int
            """

            def forward(self, **kwargs):
                return {}

        intended_use = IntendedUse("Use 1", "User 1")

        model_card = ModelCard(
            **{
                "id": "this-fake-model",
                "registered_model_name": "fake-model-3",
                "intended_use": intended_use,
            }
        )

        model_card_dict = model_card.to_dict()
        assert model_card.display_name == "FakeModel"

        for key, val in intended_use.__dict__.items():
            if val:
                assert key in model_card_dict
            else:
                assert key not in model_card_dict
This is a fake model with a docstring.

# Parameters

fake_param1: str
fake_param2: int
tests/common/model_card_test.py