Added closing bracket to for loop in DatasetWriter example.