def METHOD_NAME(self, timestamp: int) -> int:
    """
    Validate if timestamp is not on a range within 5 minutes
    :param timestamp:
    :return:
    """
    if timestamp is not None:
        minutes_allowed = 5
        current_epoch = int(time.time())
        time_delta = abs(current_epoch - timestamp)
        if time_delta > (60 * minutes_allowed):  # Timestamp older than 5 minutes
            raise ValidationError(
                f"Provided timestamp is not in a range within {minutes_allowed} minutes"
            )
    return timestamp