code for "Time-resolved network engagement diversity captures neural flexibility in regional engagement with large-scale networks"