def __init__(self, retrieval_index: Iterable[RawExample], funcall_format: str,
               converter_config: ConverterConfig,
               formatter_config: casper_formatters.FormatterConfig):
    """Constructs a new example converter.

    Args:
      retrieval_index: The retrieval index.
      funcall_format: Format of the output function call or logical form.
      converter_config: A ConverterConfig object.
      formatter_config: A FormatterConfig object.
    """
    self._funcall_format = funcall_format
    self._converter_config = converter_config
    self._preprocess_example = functools.partial(
        casper_formatters.preprocess_example, funcall_format=funcall_format)
    self._augment_exemplars = functools.partial(
        casper_formatters.augment_exemplars,
        funcall_format=funcall_format,
        config=formatter_config)
    self._process_index(retrieval_index)
    # A Counter that can collect arbitrary statistics.
    self.stats = collections.Counter()
Constructs a new example converter.

    Args:
      retrieval_index: The retrieval index.
      funcall_format: Format of the output function call or logical form.
      converter_config: A ConverterConfig object.
      formatter_config: A FormatterConfig object.
    
language/casper/augment/casper_converters.py