code: def test_from_template(
      self,
      repo_id: str,
      fields: List["AllowedFieldTypes"],
      questions: List["AllowedQuestionTypes"],
      guidelines: str,
      vectors_settings: List[VectorSettings],
      record: FeedbackRecord,
      metadata_properties: List[AllowedMetadataPropertyTypes],
  ) -> None:
      card = ArgillaDatasetCard.from_template(
          card_data=DatasetCardData(
              language="en",
              size_categories="n<1K",
              tags=["rlfh", "argilla", "human-feedback"],
          ),
          template_path=ArgillaDatasetCard.default_template_path,
          repo_id=repo_id,
          argilla_fields=fields,
          argilla_questions=questions,
          argilla_guidelines=guidelines,
          argilla_metadata_properties=metadata_properties,
          argilla_vectors_settings=vectors_settings,
          argilla_record=json.loads(record.json()),
          huggingface_record=record.json(),
      )
  
      assert isinstance(card, ArgillaDatasetCard)
      assert (
          card.default_template_path
          == ArgillaDatasetCard.default_template_path
      )
      assert card.content.__contains__(
          f"# Dataset Card for {repo_id.split('/')[1]}"
      )
      assert all(field.name in card.content for field in fields)
      assert all(
          question.name in card.content for question in questions
      )
      assert all(
          vector_settings.name in card.content
          for vector_settings in vectors_settings
      )
      assert guidelines in card.content
      assert re.search(
          "\| color \| color \| terms \| \['red', 'blue'\] \| True \|",
          card.content,
      )
      assert re.search(
          "\| day \| day \| integer \| 0 - 31 \| False \|", card.content
      )
      assert re.search(
          "\| price \| price \| float \| 0\.0 - 100\.0 \| True \|",
          card.content,
      )
  
      # In case we implement new metadata_property types and forget about the poor little dataset cards ...
      for (
          allowed_metadata_type
      ) in AllowedMetadataPropertyTypes.__args__:
          if allowed_metadata_type not in [
              type(metadata) for metadata in metadata_properties
          ]:
              raise NotImplementedError(
                  f"ArgillaDatasetCard not tested for '{allowed_metadata_type}'."
              )
  
file_path: argilla/tests/unit/client/feedback/integrations/huggingface/card/test__dataset_card.py
imports: import json
  import re
  from typing import TYPE_CHECKING, List
  from uuid import uuid4
  import pytest
  from argilla.client.feedback.integrations.huggingface.card import ArgillaDatasetCard
  from argilla.client.feedback.schemas.fields import TextField
  from argilla.client.feedback.schemas.metadata import FloatMetadataProperty, IntegerMetadataProperty, TermsMetadataProperty
  from argilla.client.feedback.schemas.questions import LabelQuestion, MultiLabelQuestion, RankingQuestion, RatingQuestion, TextQuestion
  from argilla.client.feedback.schemas.records import FeedbackRecord
  from argilla.client.feedback.schemas.types import AllowedMetadataPropertyTypes
  from argilla.client.feedback.schemas.vector_settings import VectorSettings
  from huggingface_hub import DatasetCardData
label_desc: Use image node_id 1 for calling the TestSuiteArgillaDatasetCard obj's underlying member method code with example usage: obj.test_from_template(repo_id, fields, questions, guidelines, vectors_settings, record, metadata_properties) without return types