def get_from_dictionary(self, dictionary, key):
        """Returns a value from the given `dictionary` based on the given `key`.

        If the given `key` cannot be found from the `dictionary`, this keyword
        fails.

        The given dictionary is never altered by this keyword.

        Example:
        | ${value} = | Get From Dictionary | ${D3} | b |
        =>
        - ${value} = 2
        """
        try:
            return dictionary[key]
        except __HOLE__:
            raise RuntimeError("Dictionary does not contain key '%s'" % key)
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/Collections.py/_Dictionary.get_from_dictionary