code: def test_model_card_sentence_transformers(
      feedback_dataset_fields: List["AllowedFieldTypes"],
      feedback_dataset_questions: List["AllowedQuestionTypes"],
      feedback_dataset_guidelines: str,
      feedback_dataset_records: List["FeedbackRecord"],
      mocked_is_on_huggingface,
  ) -> None:
      dataset = FeedbackDataset(
          guidelines=feedback_dataset_guidelines,
          fields=feedback_dataset_fields,
          questions=feedback_dataset_questions,
      )
      dataset.add_records(records=feedback_dataset_records * 2)
  
      task = TrainingTask.for_sentence_similarity(
          formatting_func=formatting_func_sentence_transformers
      )
  
      trainer = ArgillaTrainer(
          dataset=dataset,
          task=task,
          framework="sentence-transformers",
          framework_kwargs={
              "cross_encoder": False,
              "model_card_kwargs": {
                  "license": "mit",
                  "language": ["en", "es"],
                  "dataset_name": DATASET_NAME,
                  "output_dir": '"sentence_similarity_model"',
              },
          },
      )
      trainer.update_config(epochs=1, batch_size=3)
  
      with TemporaryDirectory() as tmpdirname:
          model_card = trainer.generate_model_card(tmpdirname)
          assert (Path(tmpdirname) / MODEL_CARD_NAME).exists()
          pattern = model_card_pattern(
              Framework("sentence-transformers"),
              TrainingTask.for_sentence_similarity,
          )
          assert model_card.content.find(pattern) > -1
  
file_path: argilla/tests/integration/client/feedback/integrations/huggingface/test_model_card.py
imports: from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import TYPE_CHECKING, Callable, List, Union
  import pytest
  from argilla.client.feedback.schemas import FeedbackRecord, LabelQuestion, MultiLabelQuestion
  from argilla.client.feedback.unification import LabelQuestionUnification
  from argilla.client.models import Framework
  from argilla.feedback import ArgillaTrainer, FeedbackDataset, TrainingTask
  from tests.integration.client.feedback.helpers import formatting_func_chat_completion, formatting_func_dpo, formatting_func_ppo, formatting_func_rm, formatting_func_sentence_transformers, formatting_func_sft, model_card_pattern
label_desc: Use image node_id 2 for calling a global function with example usage: test_model_card_sentence_transformers(feedback_dataset_fields, feedback_dataset_questions, feedback_dataset_guidelines, feedback_dataset_records, mocked_is_on_huggingface) without return types