def METHOD_NAME(
    compound: IndigoObject, string_format: jsonapi.CompoundFormat
) -> Tuple[str, jsonapi.CompoundFormat]:
    if string_format == jsonapi.CompoundFormat.AUTO:
        string_format = jsonapi.CompoundFormat.MOLFILE
    if string_format == jsonapi.CompoundFormat.SMILES:
        return compound.smiles(), string_format
    if string_format == jsonapi.CompoundFormat.MOLFILE:
        return compound.molfile(), string_format
    if string_format == jsonapi.CompoundFormat.CML:
        return compound.cml(), string_format
    if string_format == jsonapi.CompoundFormat.SMARTS:
        return compound.smarts(), string_format
    if string_format == jsonapi.CompoundFormat.KET:
        return compound.json(), string_format
    if string_format == jsonapi.CompoundFormat.INCHI:
        return IndigoInchi(indigo()).getInchi(compound), string_format
    raise RuntimeError(f"{string_format} is not supported")