code: def test_model_card_openai(mocked_openai, mocked_is_on_huggingface):
      dataset = FeedbackDataset.from_huggingface(
          "argilla/customer_assistant"
      )
      dataset._records = dataset._records[:3]
      task = TrainingTask.for_chat_completion(
          formatting_func=formatting_func_chat_completion
      )
  
      trainer = ArgillaTrainer(
          dataset=dataset,
          task=task,
          framework="openai",
      )
  
      trainer = ArgillaTrainer(
          dataset=dataset,
          task=task,
          framework="openai",
          model="gpt-3.5-turbo-0613",
          framework_kwargs={
              "model_card_kwargs": {
                  "license": "mit",
                  "language": ["en", "es"],
                  "dataset_name": DATASET_NAME,
                  "output_dir": '"chat_completion_model"',
              }
          },
      )
  
      with TemporaryDirectory() as tmpdirname:
          model_card = trainer.generate_model_card(tmpdirname)
          assert (Path(tmpdirname) / MODEL_CARD_NAME).exists()
          pattern = model_card_pattern(
              Framework("openai"), TrainingTask.for_chat_completion
          )
          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 3 for calling a global function with example usage: test_model_card_openai(mocked_openai, mocked_is_on_huggingface) without return types