function isNoMtpError({ error, stderr, mtpMode }) {
  checkIf(mtpMode, 'inObjectValues', MTP_MODE);

  if (mtpMode === MTP_MODE.legacy) {
    return (
      (stderr ?? '').toString().toLowerCase().indexOf('no mtp') !== -1 ||
      (error ?? '').toString().toLowerCase().indexOf('no mtp') !== -1
    );
  }

  return stderr === MTP_ERROR.ErrorMtpDetectFailed;
}
Will return true if the error is a mtp detect error.

@param {string} error
@param {string} stderr
@param {'kalam'|'legacy'} mtpMode