def METHOD_NAME(file: str) -> str:
    """Argparse type to check parameter file to be saved"""
    if file == "defaults.ini":
        log_and_raise(
            argparse.ArgumentTypeError(
                "Cannot overwrite defaults.ini file, please save with a different name"
            )
        )
    elif not file.endswith(".ini"):
        log_and_raise(argparse.ArgumentTypeError("File to be saved needs to be .ini"))
    return file