def apply_time_filter(dataset_row, time_interval):
  """Returns True if data is within the given time intervals."""
  merge_time = dataset_row['grounded_normalized_time']
  lower_time, upper_time = time_interval
  return merge_time > lower_time and merge_time < upper_time