code: protected File getResourceFile(){
  
          URL url = getURL();
          String urlString = url.toString();
          String filename = urlString.substring(urlString.lastIndexOf('/')+1);
          File resourceDir = DL4JResources.getDirectory(ResourceType.RESOURCE, resourceName());
          File localFile = new File(resourceDir, filename);
  
          String expMD5 = resourceMD5();
          if(localFile.exists()){
              try{
                  if(Downloader.checkMD5OfFile(expMD5, localFile)){
                      return localFile;
                  }
              } catch (IOException e){
                  //Ignore
              }
              //MD5 failed
              localFile.delete();
          }
  
          //Download
          try {
              Downloader.download(resourceName(), url, localFile, expMD5, 3);
          } catch (IOException e){
              throw new RuntimeException("Error downloading labels",e);
          }
  
          return localFile;
      }
docs: Download the resource at getURL() to the local resource directory, and return the local copy as a File
  
  @return File of the local resource