text: import unittest
  
  from hw_asr.datasets import LibrispeechDataset, CustomDirAudioDataset
  from hw_asr.text_encoder.ctc_char_text_encoder import CTCCharTextEncoder
  from hw_asr.utils import ROOT_PATH
  from hw_asr.utils.parse_config import ConfigParser
  import ssl
  
  
  class TestDataset(unittest.TestCase):
      def test_librispeech(self):
          ssl._create_default_https_context = ssl._create_unverified_context
          text_encoder = CTCCharTextEncoder.get_simple_alphabet()
          config_parser = ConfigParser.get_default_configs()
  
          ds = LibrispeechDataset(
              "dev-clean", text_encoder=text_encoder, config_parser=config_parser
          )
          item = ds[0]
          print(item)
  
      def test_custom_dataset(self):
          text_encoder = CTCCharTextEncoder.get_simple_alphabet()
          config_parser = ConfigParser.get_default_configs()
  
          audio_dir = str(ROOT_PATH / 'test_data' / 'audio')
          transc_dir = str(ROOT_PATH / 'test_data' / 'transcriptions')
  
          ds = CustomDirAudioDataset(
              audio_dir, transc_dir, text_encoder=text_encoder, config_parser=config_parser
          )
          item = ds[0]
          print(item)
  