code: def test_exit_on_crash_infinite():
      def _exit_infinite():
          dataset = DummyDataset(100)
          with DataQueue(
              dataset, repeat=-1, queue_maxsize=100
          ) as data_queue:
              time.sleep(3)
              raise ValueError
  
      process = multiprocessing.Process(target=_exit_infinite)
      process.start()
      process.join()
  
file_path: qlib/tests/rl/test_data_queue.py
imports: import multiprocessing
  import time
  import numpy
  import pandas
  from torch.utils.data import Dataset, DataLoader
  from qlib.rl.utils.data_queue import DataQueue
label_desc: Use image node_id 6 for calling a global function with example usage: test_exit_on_crash_infinite() without return types