async allocate(deviceConfig) {
    const tid = this._counter++;
    return await log.trace.complete({ data: deviceConfig, id: tid }, 'allocate', async () => {
      const cookie = await this._driver.allocate(deviceConfig);
      log.debug({ data: cookie }, `settled on ${cookie.name || cookie.id}`);
      this._ids.set(cookie.id, tid);
      return cookie;
    });
  }
@param {Detox.DetoxDeviceConfig} deviceConfig
@returns {Promise<DeviceCookie>}