code: def _queue_to_list(queue):
      result = []
      while not queue.empty():
          result.append(queue.get())
      return result
  
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 2 for calling a global function with example usage: _queue_to_list(queue) and returns: result