code: def create_model_card(config, trainer):
      if config.valid_split is not None:
          eval_scores = trainer.evaluate()
          eval_scores = [
              f"{k[len('eval_'):]}: {v}" for k, v in eval_scores.items()
          ]
          eval_scores = "\n\n".join(eval_scores)
  
      else:
          eval_scores = "No validation metrics available"
  
      model_card = MODEL_CARD.format(
          dataset=config.data_path,
          validation_metrics=eval_scores,
      )
      return model_card
  
imports: import evaluate
  import nltk
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: create_model_card(config, trainer) and returns: model_card