<Tip>  
Note that using this function requires you to include the `model_name` attribute in [`ModelCardData`].  
</Tip>  
```python
card_data = ModelCardData(
language='en',
license='mit',
model_name='my-cool-model',
eval_results = EvalResult(
task_type='image-classification',
dataset_type='beans',
dataset_name='Beans',
metric_type='accuracy',
metric_value=0.7
)
)