docstr: Labels schema accept a list of strings. Those string will be converted
  into ``LabelsSchema.Schema`` objects
docstr_tok: ["Labels","schema","accept","a","list","of","strings",".","Those","string","will","be","converted","into","``","LabelsSchema.Schema","``","objects"]
code: def normalize_labels(cls, labels):
      """
      Labels schema accept a list of strings. Those string will be converted
      into ``LabelsSchema.Schema`` objects
      """
      if not labels:
          return labels
      if isinstance(labels[0], str):
          return [
              LabelsSchema.Schema(id=label, name=label)
              for label in labels
          ]
      return labels
  
file_path: argilla/src/argilla/server/apis/v0/models/dataset_settings.py
imports: from typing import Dict, List, Optional, Union
  from argilla.server.daos.models.datasets import EmbeddingsConfig
  from argilla.server.pydantic_v1 import BaseModel, Field, validator
label_desc: Use image node_id 1 for calling the LabelsSchema obj's underlying member method code with example usage: obj.normalize_labels(cls, labels) and returns: labels, labels, unknown