def METHOD_NAME(mar_config, optional_arg):
    """Tests mar generation with optional arguments.
    Args:
        optional_arg : optional args for mar generation
    """
    new_file, filename = tempfile.mkstemp()  #pylint: disable=W0612
    mar_config[optional_arg] = os.path.join(os.getcwd(), filename)
    generate_mar_file(config=mar_config, save_path=EXPORT_PATH)
    mar_config.pop(optional_arg)