from datetime import datetime


def from_epoch(epoch: int, tz_offset: int = 0) -> datetime:
    """
    Returns a datetime from an epoch int with optional UTC timezone offset
    """
    return datetime.fromtimestamp((epoch - tz_offset) / 1000)