def __init__(self,
                 name, site_url, download_url, description,
                 log_level=None, test_download_url=""):
        """
        Args:
            name        : dataset name
            site_url    : url to access the dataset homepage
            download_url    : dataset download url
            description     : description of dataset
        """

        self.name = name
        self.site_url = site_url
        self.download_url = download_url
        self.description = description
        # When test_mode = True, use the test_url
        self.test_mode = False
        self.test_download_url = test_download_url
        if not self.test_download_url:
            self.test_download_url = download_url
        self.__trush = []

        # create logger
        from logging import getLogger, StreamHandler, DEBUG
        self.logger = getLogger(self.__class__.__name__.lower())
        if not self.logger.hasHandlers():
            # logger is global object!
            _level = DEBUG if log_level is None else log_level
            handler = StreamHandler(sys.stdout)
            handler.setLevel(_level)
            self.logger.setLevel(_level)
            self.logger.addHandler(handler)
def __init__ ( self , name , site_url , download_url , description , log_level = None , test_download_url = "" ) : self . name = name self . site_url = site_url self . download_url = download_url self . description = description self . test_mode = False self . test_download_url = test_download_url if not self . test_download_url : self . test_download_url = download_url self . __trush = [ ] from logging import getLogger , StreamHandler , DEBUG self . logger = getLogger ( self . __class__ . __name__ . lower ( ) ) if not self . logger . hasHandlers ( ) : _level = DEBUG if log_level is None else log_level handler = StreamHandler ( sys . stdout ) handler . setLevel ( _level ) self . logger . setLevel ( _level ) self . logger . addHandler ( handler )
Args:
            name        : dataset name
            site_url    : url to access the dataset homepage
            download_url    : dataset download url
            description     : description of dataset