def METHOD_NAME(fformat: Literal["unrst", "funrst"]) -> eclio.Format:
    """Converts 'unrst' and 'funrst' to the corresponding eclio.Format.
    >>> sanitize_fformat('unrst')
    <Format.UNFORMATTED: 2>
    >>> sanitize_fformat('funrst')
    <Format.FORMATTED: 1>
    """
    if fformat == "unrst":
        return eclio.Format.UNFORMATTED
    if fformat == "funrst":
        return eclio.Format.FORMATTED
    raise ValueError(f"fformat must be either 'unrst' or 'funrst' got {fformat}")