code: def filter_options(keys, options):
      
      return dict((k, options[k]) for k in keys if k in options)
docs: Filter 'options' with given 'keys'.
  
      :param keys: key names of optional keyword arguments
      :param options: optional keyword arguments to filter with 'keys'
  
      >>> filter_options(("aaa", ), dict(aaa=1, bbb=2))
      {'aaa': 1}
      >>> filter_options(("aaa", ), dict(bbb=2))
      {}