def run_keyword_if_test_failed(self, name, *args):
        test = self._get_test_in_teardown('Run Keyword If Test Failed')
        if not test.passed:
            return self.run_keyword(name, *args)
Runs the given keyword with the given arguments, if the test failed.
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/BuiltIn.py/_RunKeyword.run_keyword_if_test_failed