code: def connect(self, port=None) -> str:
          '''
          :param port: '/dev/modules/ttyn_magdeck'
          NOTE: Using the symlink above to connect makes sure that the robot
          connects/reconnects to the module even after a device
          reset/reconnection
          '''
          if environ.get('ENABLE_VIRTUAL_SMOOTHIE', '').lower() == 'true':
              return ''
          try:
              self.disconnect()
              self._connect_to_port(port)
              self._wait_for_ack()    # verify the device is there
          except (SerialException, SerialNoResponse) as e:
              return str(e)
          return 'f connect(self, port=None) -> str:
          '''
          :param port: '/dev/modules/ttyn_magdeck'
          NOTE: Using the symlink above to connect makes sure that the robot
          connects/reconnects to the module even after a device
          reset/reconnection
          '''
          if environ.get('ENABLE_VIRTUAL_SMOOTHIE', '').lower() == 'true':
              return ''
          try:
              self.disconnect()
              self._connect_to_port(port)
              self._wait_for_ack()    # verify the device is there
          except (SerialException, SerialNoResponse) as e:
              return str(e)
          return ''
docs: :param port: '/dev/modules/ttyn_magdeck'
          NOTE: Using the symlink above to connect makes sure that the robot
          connects/reconnects to the module even after a device
          reset/reconnection