code: def test_filter_dataset_by_duration(self):
      min_duration = 1.0
      max_duration = 10.0
      entries = [
          {"duration": 0.5},
          {"duration": 10.0},
          {"duration": 20.0},
          {"duration": 0.1},
          {"duration": 100.0},
          {"duration": 5.0},
      ]
  
      (
          filtered_entries,
          total_hours,
          filtered_hours,
      ) = filter_dataset_by_duration(
          entries=entries,
          min_duration=min_duration,
          max_duration=max_duration,
      )
  
      assert len(filtered_entries) == 2
      assert filtered_entries[0]["duration"] == 10.0
      assert filtered_entries[1]["duration"] == 5.0
      assert total_hours == (135.6 / 3600.0)
      assert filtered_hours == (15.0 / 3600.0)
  
imports: from pathlib import Path
  import librosa
  import numpy
  import pytest
  import torch
  from nemo.collections.tts.parts.utils.tts_dataset_utils import filter_dataset_by_duration, get_abs_rel_paths, get_audio_filepaths, load_audio, normalize_volume, stack_tensors
label_desc: Use image node_id 15 for calling the TestTTSDatasetUtils obj's underlying member method code with example usage: obj.test_filter_dataset_by_duration() without return types