hunk.code_window: }
   exports.getItemThumbnailUrl = (item) => {
     return `/drive/thumbnail/${exports.getItemRequestPath(item)}`
   }
   exports.isSharedDrive = (item) => {
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:   return item.thumbnailLink
  
hunk.file_path: packages/@uppy/companion/src/server/provider/drive/adapter.js
hunk.type: replace
file: exports.isFolder = (item) => {
    return false
  }
  
  exports.getItemIcon = (item) => {
    if (!item.images) {
      return 'video'
    }
    return item.images.low_resolution.url
  }
  
  exports.getItemSubList = (item) => {
    const subItems = []
    item.data.forEach((subItem) => {
      if (subItem.carousel_media) {
        subItem.carousel_media.forEach((i, index) => {
          const newSubItem = Object.assign({}, i, {
            id: subItem.id,
            created_time: subItem.created_time,
            carousel_id: index
          })
          subItems.push(newSubItem)
        })
      } else {
        subItems.push(subItem)
      }
    })
    return subItems
  }
  
  exports.getItemName = (item) => {
    if (item && item.created_time) {
      const ext = item.type === 'video' ? 'mp4' : 'jpeg'
      const date = new Date(item.created_time * 1000)
      const name = date.toLocaleDateString([], {
        year: 'numeric',
        month: 'short',
        day: 'numeric',
        hour: 'numeric',
        minute: 'numeric'
      })
      // adding both date and carousel_id, so the name is unique
      return `Instagram ${name}${item.carousel_id ? ' ' + item.carousel_id : ''}.${ext}`
    }
    return ''
  }
  
  exports.getMimeType = (item) => {
    return item.type === 'video' ? 'video/mp4' : 'image/jpeg'
  }
  
  exports.getItemId = (item) => {
    return `${item.id}${item.carousel_id || ''}`
  }
  
  exports.getItemRequestPath = (item) => {
    const suffix = isNaN(item.carousel_id) ? '' : `?carousel_id=${item.carousel_id}`
    return `${item.id}${suffix}`
  }
  
  exports.getItemModifiedDate = (item) => {
    return item.created_time
  }
  
  exports.getItemThumbnailUrl = (item) => {
    return item.images ? item.images.thumbnail.url : null
  }
  
  exports.getNextPagePath = (data) => {
    const items = exports.getItemSubList(data)
    if (items.length) {
      return `recent?cursor=${exports.getItemId(items[items.length - 1])}`
    }
  }
  