class_docstr: Col-based storage.
class_docstr_tok: ["Col-based","storage","."]
code: def get_dict(self, cols: List[str] = None) -> Optional[Dict]:
      data = self.get()
      if data is None:
          return None
  
      ret = {}
      names = self._schema.col_names
      if cols is None:
          for i, name in enumerate(names):
              ret[name] = data[i]
      else:
          for i, name in enumerate(names):
              if name in cols:
                  ret[name] = data[i]
      return ret
  
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 7 for calling the DataQueue obj's underlying member method code with example usage: obj.get_dict(cols) and returns: ret, None