docstr: ...Test dataset is correctly downloaded or fetched from cache
          
docstr_tok: ["...","Test","dataset","is","correctly","downloaded","or","fetched","from","cache"]
code: def test_fetch_tick_dataset(self):
      """...Test dataset is correctly downloaded or fetched from cache"""
  
      if is_connected():
          dataset_path = "binary/adult/adult.tst.bz2"
  
          # start with no cache
          clear_dataset(dataset_path)
  
          # download dataset from github repo
          features, labels = fetch_tick_dataset(
              dataset_path, verbose=False
          )
          self.assertEqual(features.shape, (16281, 123))
          self.assertEqual(labels.shape, (16281,))
  
          cache_path = os.path.join(get_data_home(), dataset_path)
          file_modification_time_1 = os.path.getmtime(cache_path)
  
          # fetch dataset from cache
          features, labels = fetch_tick_dataset(dataset_path)
          self.assertEqual(features.shape, (16281, 123))
          self.assertEqual(labels.shape, (16281,))
  
          # ensure the same file has been used
          file_modification_time_2 = os.path.getmtime(cache_path)
          self.assertEqual(
              file_modification_time_1, file_modification_time_2
          )
  
imports: import os
  import unittest
  import socket
  from tick.dataset.download_helper import fetch_tick_dataset, clear_dataset, get_data_home
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.test_fetch_tick_dataset() without return types