def format_batch_start(batch_start: datetime, batch_size: BatchSize) -> str:
        """Format the passed in datetime based on the batch_size.

        2024-09-17 16:06:00 + Batchsize.hour  -> 2024-09-17T16
        2024-09-17 16:06:00 + Batchsize.day   -> 2024-09-17
        2024-09-17 16:06:00 + Batchsize.month -> 2024-09
        2024-09-17 16:06:00 + Batchsize.year  -> 2024
        """
        if batch_size == BatchSize.year:
            return batch_start.strftime("%Y")
        elif batch_size == BatchSize.month:
            return batch_start.strftime("%Y-%m")
        elif batch_size == BatchSize.day:
            return batch_start.strftime("%Y-%m-%d")
        else:  # batch_size == BatchSize.hour
            return batch_start.strftime("%Y-%m-%dT%H")
Format the passed in datetime based on the batch_size.

        2024-09-17 16:06:00 + Batchsize.hour  -> 2024-09-17T16
        2024-09-17 16:06:00 + Batchsize.day   -> 2024-09-17
        2024-09-17 16:06:00 + Batchsize.month -> 2024-09
        2024-09-17 16:06:00 + Batchsize.year  -> 2024
        
core/dbt/materializations/incremental/microbatch.py