class_docstr: Col-based storage.
class_docstr_tok: ["Col-based","storage","."]
code: def to_list(self, kv_format=False):
      if not self.sealed:
          raise RuntimeError("The queue is not sealed")
      if not kv_format:
          return [self.get() for _ in range(self.size)]
      return [self.get_dict() for _ in range(self.size)]
  
imports: import threading
  import copy
  from enum import Enum, auto
  from typing import List, Tuple, Union, Dict, Optional
  from collections import deque, namedtuple
label_desc: Use image node_id 8 for calling the DataQueue obj's underlying member method code with example usage: obj.to_list(kv_format) and returns: unknown, unknown