code: def feedback_dataset_records_with_metadata() -> List[FeedbackRecord]:
      records = []
      external_id = 0
      for status in ["submitted", "discarded"]:
          records.extend(
              [
                  FeedbackRecord(
                      fields={
                          "text": "This is a positive example",
                          "label": "positive",
                      },
                      responses=[
                          {
                              "values": {
                                  "question-1": {
                                      "value": "positive example"
                                  },
                                  "question-2": {"value": 1},
                                  "question-3": {"value": "a"},
                                  "question-4": {"value": ["a", "b"]},
                                  "question-5": {
                                      "value": [
                                          {"rank": 1, "value": "a"},
                                          {"rank": 2, "value": "b"},
                                      ]
                                  },
                              },
                              "status": status,
                          },
                      ],
                      metadata={
                          "terms-metadata": "a",
                          "integer-metadata": 2,
                          "float-metadata": 2.0,
                      },
                      external_id=str(external_id + 1),
                  ),
                  FeedbackRecord(
                      fields={
                          "text": "This is a negative example",
                          "label": "negative",
                      },
                      metadata={
                          "terms-metadata": "a",
                          "integer-metadata": 4,
                          "float-metadata": 4.0,
                      },
                      external_id=str(external_id + 2),
                  ),
                  FeedbackRecord(
                      fields={
                          "text": "This is a negative example",
                          "label": "negative",
                      },
                      responses=[
                          {
                              "values": {
                                  "question-1": {
                                      "value": "negative example"
                                  },
                                  "question-2": {"value": 1},
                                  "question-3": {"value": "b"},
                                  "question-4": {"value": ["b", "c"]},
                                  "question-5": {
                                      "value": [
                                          {"rank": 1, "value": "a"},
                                          {"rank": 2, "value": "b"},
                                      ]
                                  },
                              },
                              "status": status,
                          }
                      ],
                      metadata={
                          "terms-metadata": "b",
                          "integer-metadata": 4,
                          "float-metadata": 4.0,
                      },
                      suggestions=[
                          {
                              "question_name": "question-1",
                              "value": "This is a suggestion to question 1",
                              "type": "human",
                              "score": 0.0,
                              "agent": "agent-1",
                          },
                          {
                              "question_name": "question-2",
                              "value": 1,
                              "type": "human",
                              "score": 0.0,
                              "agent": "agent-1",
                          },
                          {
                              "question_name": "question-3",
                              "value": "a",
                              "type": "human",
                              "score": 0.0,
                              "agent": "agent-1",
                          },
                          {
                              "question_name": "question-4",
                              "value": ["a", "b"],
                              "type": "human",
                              "score": 0.0,
                              "agent": "agent-1",
                          },
                          {
                              "question_name": "question-5",
                              "value": [
                                  {"rank": 1, "value": "a"},
                                  {"rank": 2, "value": "b"},
                              ],
                              "type": "human",
                              "score": 0.0,
                              "agent": "agent-1",
                          },
                      ],
                      external_id=str(external_id + 3),
                  ),
                  FeedbackRecord(
                      fields={
                          "text": "This is a negative example",
                          "label": "negative",
                      },
                      responses=[
                          {
                              "values": {
                                  "question-1": {
                                      "value": "negative example"
                                  },
                                  "question-2": {"value": 1},
                                  "question-3": {"value": "c"},
                                  "question-4": {"value": ["a", "c"]},
                                  "question-5": {
                                      "value": [
                                          {"rank": 1, "value": "a"},
                                          {"rank": 2, "value": "b"},
                                      ]
                                  },
                              },
                              "status": status,
                          }
                      ],
                      metadata={
                          "terms-metadata": "b",
                          "integer-metadata": 5,
                          "float-metadata": 4.0,
                      },
                      external_id=str(external_id + 4),
                  ),
                  FeedbackRecord(
                      fields={
                          "text": "This is a negative example",
                          "label": "negative",
                      },
                      responses=[
                          {
                              "values": {
                                  "question-1": {
                                      "value": "negative example"
                                  },
                                  "question-2": {"value": 1},
                                  "question-3": {"value": "a"},
                                  "question-4": {"value": ["a"]},
                                  "question-5": {
                                      "value": [
                                          {"rank": 1, "value": "a"},
                                          {"rank": 2, "value": "b"},
                                      ]
                                  },
                              },
                              "status": status,
                          }
                      ],
                      metadata={
                          "terms-metadata": "c",
                          "integer-metadata": 6,
                          "float-metadata": 6.0,
                      },
                      external_id=str(external_id + 5),
                  ),
              ]
          )
          external_id += 5
  
      return records
  
imports: import datetime
  import random
  from typing import TYPE_CHECKING, Generator, List
  import pytest
  from argilla.client.api import log
  from argilla.client.datasets import read_datasets
  from argilla.client.feedback.dataset.local.dataset import FeedbackDataset
  from argilla.client.feedback.schemas import FeedbackRecord, LabelQuestion, MultiLabelQuestion, RankingQuestion, RatingQuestion, TextField, TextQuestion
  from argilla.client.feedback.schemas.metadata import FloatMetadataProperty, IntegerMetadataProperty, TermsMetadataProperty
  from argilla.client.feedback.schemas.vector_settings import VectorSettings
  from argilla.client.models import Text2TextRecord, TextClassificationRecord, TokenAttributions, TokenClassificationRecord
  from argilla.client.sdk.datasets.models import TaskType
  from argilla.client.sdk.text2text.models import CreationText2TextRecord, Text2TextBulkData
  from argilla.client.sdk.text_classification.models import CreationTextClassificationRecord, TextClassificationBulkData
  from argilla.client.sdk.token_classification.models import CreationTokenClassificationRecord, TokenClassificationBulkData
  from argilla.client.singleton import init
  from argilla.server.models import User
  from datasets import Dataset
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 18 for calling a global function with example usage: feedback_dataset_records_with_metadata() and returns: records