def bounds(measurement, uncertainty):
    """Return resolved bounds based on measurement and uncertainty."""
    if uncertainty:
        return measurement - uncertainty, measurement + uncertainty
    else:
        return measurement, measurement