def METHOD_NAME(cls, obj: S) -> DataType:
    """Infer the Ibis datatype of a format-specific scalar.
    Parameters
    ----------
    obj
        The format-specific scalar to infer the Ibis datatype of.
    Returns
    -------
    Ibis datatype corresponding to the given format-specific scalar.
    """
    raise NotImplementedError