def METHOD_NAME(format_name):
    """returns file extension + dict of required parameters for
    Table.write"""
    if format_name == "fits":
        return "fits.gz", dict()
    elif format_name == "ecsv":
        return "ecsv", dict()
    else:
        raise NameError(f"format {format_name} not supported")