code: def to_json(self) -> str:
      warnings.warn(
          "`DatasetConfig` can just be dumped to YAML, so make sure that you are"
          " dumping to a YAML file instead of a JSON file. `DatasetConfig` will come"
          " in YAML format from now on, instead of JSON format.",
          DeprecationWarning,
      )
      return 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 DeprecatedDatasetConfig obj's underlying member method code with example usage: obj.to_json() and returns: self