Don't forget to close your fid! Or better, use a context manager:
```
f, tree, _ = fiff_open(fname)
with f as fid:
    _, meas ...
    evoked_node ...
return len(evoked_node)
```