def disconnect(self):
        
        self._log("Disconnecting")
        
        # attempt to close and destroy the device
        if hasattr(self, "device") and (self.device is None):
            with self.modem_lock:
                if self.device.isOpen():
                    self.device.close()
                    self.device = None
                    return True
        
        # for some reason, the device
        # couldn't be closed. it probably
        # just isn't open yet
        return False
set config of extensions
dataset/ETHPy150Open sahana/eden/modules/pygsm/gsmmodem.py/GsmModem.disconnect--crossover with--dataset/ETHPy150Open CelloCello/flask-go/flask_go/project_template/project_name/project_name.py/_config_ext