class_docstr: Base class for datasets that are stored in a remote file.
  
  Medium and large datasets that are not part of the river package inherit from this class.
  
  The filename doesn't have to be provided if unpack is False. Indeed in the latter case the
  filename will be inferred from the URL.
  
  Parameters
  ----------
  url
      The URL the dataset is located at.
  size
      The expected download size.
  unpack
      Whether to unpack the download or not.
  filename
      An optional name to given to the file if the file is unpacked.
  desc
      Extra dataset parameters to pass as keyword arguments.
class_docstr_tok: ["Base","class","for","datasets","that","are","stored","in","a","remote","file",".","Medium","and","large","datasets","that","are","not","part","of","the","river","package","inherit","from","this","class",".","The","filename","does","n't","have","to","be","provided","if","unpack","is","False",".","Indeed","in","the","latter","case","the","filename","will","be","inferred","from","the","URL",".","Parameters","--","--","--","--","--","url","The","URL","the","dataset","is","located","at",".","size","The","expected","download","size",".","unpack","Whether","to","unpack","the","download","or","not",".","filename","An","optional","name","to","given","to","the","file","if","the","file","is","unpacked",".","desc","Extra","dataset","parameters","to","pass","as","keyword","arguments","."]
code: def __init__(self, url, size, unpack=True, filename=None, **desc):
      if filename is None:
          filename = os.path.basename(url)
  
      super().__init__(filename=filename, **desc)
      self.url = url
      self.size = size
      self.unpack = unpack
  
imports: from __future__ import annotations
  import abc
  import inspect
  import itertools
  import os
  import pathlib
  import re
  import shutil
  import tarfile
  import typing
  import zipfile
  from urllib import request
  from river import utils
label_desc: Use image node_id 1 to create a new RemoteDataset object from inherited base classes: FileDataset with example: obj = RemoteDataset(url, size, unpack, filename)