'Keeps the given ``keys`` in the ``dictionary`` and removes all other.
If the given ``key`` cannot be found from the ``dictionary``, it
is ignored.
Example:
| Keep In Dictionary | ${D5} | b | x | d |
| ${D5} = {\'b\': 2, \'d\': 4}'

def keep_in_dictionary(self, dictionary, *keys):

    remove_keys = [k for k in dictionary if (k not in keys)]
    self.remove_from_dictionary(dictionary, *remove_keys)
