def utcnow_matching_type(self, dt: datetime) -> datetime:
        """
        Current UTC datetime with the same timezone-awareness (or naiveness) as the input.
        """
        return (
            datetime.now(timezone.utc)
            if is_aware(dt)
            else datetime.now(timezone.utc).replace(tzinfo=None)
        )

        Current UTC datetime with the same timezone-awareness (or naiveness) as the input.
        
tests/functional/adapter/utils/test_current_timestamp.py