code: def device_info(self):
          
          return {
              'family': self.family,
              'platform': self.platform,
              'os_type': self.os_type,
              'os_version': self.os_version,
              'udi': self.udi,
              # TODO(klstanie): add property to make driver automatically
              'driver_name': self.driver.platform,
              'mode': self.mode,
              'is_console': self.is_console,
              'is_target': self.is_target,
              # 'prompt': self.driver.base_prompt(self.prompt),
              'hostname': self.hostname,
          }
docs: Return device info dict.