code: def to_yaml(self) -> str:
      # THIS DOUBLE SERIALIZATION IS DONE TO AVOID GENERATING YAMLs WITH CUSTOM ENUM TYPES.
      # SEE https://github.com/argilla-io/argilla/issues/4089
      # A better solution must be applied. We must review all defined enums in Pydantic models and set up the
      # `use_enum_values = True` flag.
      # See also https://github.com/yaml/pyyaml/issues/722
      return safe_dump(json.loads(self.json()))
  
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 1 for calling the DatasetConfig obj's underlying member method code with example usage: obj.to_yaml() and returns: safe_dump