<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_range(self, accel=1, gyro=1):
 """Set the measurement range for the accel and gyro MEMS. Higher range means less resolution. :param accel: a RANGE_ACCEL_* constant :param gyro: a RANGE_GYRO_* constant :Example: .. code-block:: python sensor = MPU6050I2C(gateway_class_instance) sensor.set_range( accel=MPU6050I2C.RANGE_ACCEL_2G, gyro=MPU6050I2C.RANGE_GYRO_250DEG ) """

        self.i2c_write_register(0x1c, accel)
        self.i2c_write_register(0x1b, gyro)
        self.accel_range = accel
        self.gyro_range = gyro