code: def _getitem(item, i):
      
      if not isinstance(i, (tuple, list)):
          return item.get(i, _none)
      type_ = list if isinstance(item, list) else tuple
      return type_(item.get(j, _none) for j in i)
docs: Extract value or values from dicts.
  
      Covers the case of a single key or multiple keys. If not found,
      return placeholders instead.