code: def _getitem_list_list(items, keys, tuple_=False):
      """Ugly but efficient extraction of multiple values from a list of
      items.
      """
      filtered = []
      for item in items:
          row = []
          for key in keys:
              try:
                  row.append(item[key])
              except KeyError:
                  break
          else:  # no break
              if row:
                  filtered.append(tuple(row) if tuple_ else row)
      if items and not filtered:
          return _none
      return filtered
  
imports: import json
  import pickle
  from skorch.utils import open_file_like
label_desc: Use image node_id 2 for calling a global function with example usage: _getitem_list_list(items, keys, tuple_) and returns: filtered, _none