code: def DecoderDataclassField(
      model_type: str, feature_type: str, default: str
  ) -> Field:
      """Custom dataclass field that when used inside a dataclass will allow the user to specify a decoder config.
  
      Returns: Initialized dataclass field that converts an untyped dict with params to a decoder config.
      """
      decoder_registry = get_decoder_classes(model_type, feature_type)
  
      class DecoderSelection(schema_utils.TypeSelection):
          def __init__(self):
              super().__init__(
                  registry=decoder_registry,
                  default_value=default,
                  allow_str_value=True,
              )
  
          def get_schema_from_registry(
              self, key: str
          ) -> Type[schema_utils.BaseMarshmallowConfig]:
              return decoder_registry[key]
  
          def _jsonschema_type_mapping(self):
              return {
                  "type": "object",
                  "properties": {
                      "type": {
                          "type": "string",
                          "enum": list(decoder_registry.keys()),
                          "enumDescriptions": get_decoder_descriptions(
                              model_type, feature_type
                          ),
                          "default": default,
                      },
                  },
                  "title": "decoder_options",
                  "allOf": get_decoder_conds(decoder_registry),
              }
  
      return DecoderSelection().get_default_field()
  
file_path: ludwig/ludwig/schema/decoders/utils.py
imports: from dataclasses import Field
  from typing import Any, Dict, List, Optional, Type, TYPE_CHECKING, Union
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import MODEL_ECD, TYPE
  from ludwig.schema import utils
  from ludwig.schema.metadata import DECODER_METADATA
  from ludwig.schema.metadata.parameter_metadata import convert_metadata_to_json
  from ludwig.utils.registry import Registry
label_desc: Use image node_id 6 for calling a global function with example usage: DecoderDataclassField(model_type, feature_type, default) and returns: DecoderSelection, decoder_registry, dict