def METHOD_NAME(device_name):
    results_file = "netmiko_performance.csv"
    entries = []
    with open(results_file) as f:
        read_csv = csv.DictReader(f)
        for entry in read_csv:
            entry = dict(entry)
            version, device = entry["netmiko_version"], entry["device_name"]
            if (
                version != __version__ and device == device_name
            ) or device_name != device:
                entries.append(entry)
    with open(results_file, "w", newline="") as csv_file:
        field_names = list(entries[0].keys())
        csv_write = csv.DictWriter(csv_file, fieldnames=field_names)
        csv_write.writeheader()
        csv_write.writerows(entries)