code: def read_with_selection(func):
      
      def wrapper(*args, **kwargs):
          """Execute a function, then apply a selection filter
          """
          # parse selection
          selection = kwargs.pop('selection', None) or []
  
          # read table
          tab = func(*args, **kwargs)
  
          # apply selection
          if selection:
              return filter_table(tab, selection)
  
          return tab
  
      return _safe_wraps(wrapper, func)
docs: Decorate a Table read method to apply ``selection`` keyword