class_docstr: A class used to abstract any file that has to be downloaded online.
  
  Originally taken from ParlAI, this file has been modified for MMF specific
  use cases.
  
  Any dataset/model that needs to download a file needs to have a list RESOURCES
  that have objects of this class as elements.
  
  The class automatically figures out if the file is from Google Drive.
  
  This class provides the following functionality:
  
  - Download a file from a URL / Google Drive
  - Decompress the file if compressed
  - Checksum for the downloaded file
  - Send HEAD request to validate URL or Google Drive link
  - If the file is present and checksum is same, it won't be redownloaded
  
  Raises:
      AssertionError: If while downloading checksum of the files fails.
class_docstr_tok: ["A","class","used","to","abstract","any","file","that","has","to","be","downloaded","online",".","Originally","taken","from","ParlAI",",","this","file","has","been","modified","for","MMF","specific","use","cases",".","Any","dataset\/model","that","needs","to","download","a","file","needs","to","have","a","list","RESOURCES","that","have","objects","of","this","class","as","elements",".","The","class","automatically","figures","out","if","the","file","is","from","Google","Drive",".","This","class","provides","the","following","functionality",":","-","Download","a","file","from","a","URL","\/","Google","Drive","-","Decompress","the","file","if","compressed","-","Checksum","for","the","downloaded","file","-","Send","HEAD","request","to","validate","URL","or","Google","Drive","link","-","If","the","file","is","present","and","checksum","is","same",",","it","wo","n't","be","redownloaded","Raises",":","AssertionError",":","If","while","downloading","checksum","of","the","files","fails","."]
code: def _parse_url(self, url):
      if url.find(self.MMF_PREFIX) == -1:
          return url
      else:
          return (
              self.MMF_PREFIX_REPLACEMENT + url[len(self.MMF_PREFIX) :]
          )
  
imports: import collections
  import datetime
  import hashlib
  import io
  import json
  import os
  import shutil
  import time
  from pathlib import Path
  import numpy
  import requests
  import tqdm
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path
  from PIL import Image
label_desc: Use image node_id 2 for calling the DownloadableFile obj's underlying member method code with example usage: obj._parse_url(url) and returns: url, unknown