def METHOD_NAME(inchi: str) -> str:
    """Convert Inchi to smiles"""
    out = Chem.MolToSmiles(Chem.inchi.MolFromInchi(inchi))
    if out is None:
        raise ValueError(f"'{inchi}' is not a valid Inchi")
    return out