code: def from_yaml(cls, yaml_str: str) -> "DatasetConfig":
      yaml_str = re.sub(
          r"(\n\s*|)id: !!python/object:uuid\.UUID\s+int: \d+",
          "",
          yaml_str,
      )
      yaml_dict = load(yaml_str, Loader=SafeLoader)
      # Here for backwards compatibility
      for field in yaml_dict["fields"]:
          field.pop("id", None)
          field.pop("settings", None)
      for question in yaml_dict["questions"]:
          question.pop("id", None)
          question.pop("settings", None)
      return cls(**yaml_dict)
  
file_path: argilla/src/argilla/client/feedback/config.py
imports: import json
  import re
  import warnings
  from typing import List, Optional
  import json
  from argilla.pydantic_v1 import BaseModel, Field
  from argilla.client.feedback.schemas.types import AllowedFieldTypes, AllowedMetadataPropertyTypes, AllowedQuestionTypes
  from argilla.client.feedback.schemas.vector_settings import VectorSettings
label_desc: Use image node_id 2 for calling the DatasetConfig obj's underlying member method code with example usage: obj.from_yaml(cls, yaml_str) and returns: cls