def getMediaType(fmt: str) ->str:
    """Guess media type from file type.

    Args:
        fmt: file type

    Returns:
        String
    """
    if fmt == 'csv':
        return 'text/csv'
    elif fmt == 'json':
        return 'application/json'
    else:
        return 'text/csv'
