def from_dict(cls, converter_kwargs: Dict[str, Any]) -> "FormatterConfig":
    """Constructs a ConverterConfig from the given dict.

    Args:
      converter_kwargs: A dict with attributes of FormatterConfig as keys.
        Optionally, converter_kwargs["presets"] can be a list of preset names
        from _FORMATTER_CONFIG_PRESETS, which will populate the dict with preset
        config values.

    Returns:
      a FormatterConfig object.
    """
    # Make a copy
    converter_kwargs = dict(converter_kwargs)
    # Resolve presets
    if "presets" in converter_kwargs:
      for preset in converter_kwargs["presets"]:
        converter_kwargs = _FORMATTER_CONFIG_PRESETS[preset](converter_kwargs)
      del converter_kwargs["presets"]
    # Resolve aliases
    for abbr_key, full_key in _FORMATTER_CONFIG_ALIASES.items():
      if abbr_key in converter_kwargs:
        converter_kwargs[full_key] = converter_kwargs[abbr_key]
        del converter_kwargs[abbr_key]
    config = cls(**converter_kwargs)
    return config
Constructs a ConverterConfig from the given dict.

    Args:
      converter_kwargs: A dict with attributes of FormatterConfig as keys.
        Optionally, converter_kwargs["presets"] can be a list of preset names
        from _FORMATTER_CONFIG_PRESETS, which will populate the dict with preset
        config values.

    Returns:
      a FormatterConfig object.
    
language/casper/augment/casper_formatters.py