def variable_should_exist(self, name, msg=None):
        name = self._get_var_name(name)
        msg = self._variables.replace_string(msg) if msg \
            else "Variable %s does not exist" % name
        asserts.fail_unless(name in self._variables, msg)
Fails unless the given variable exists within the current scope.
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/BuiltIn.py/_Variables.variable_should_exist