def METHOD_NAME(self):
    """Measure the power in W."""
    if self.is_power_sensor:
        return self.values("MEAS:POW?")[0]
    else:
        raise AttributeError(f"{self.sensor_name} is not a power sensor.")