def get_regex_library(self, keyword):
        words = self.split_kw_to_words(keyword)
        regex_from_func = '(?im)(def '
        regex_from_deco = r'(\@keyword.+name=[\'"]'
        for word in words:
            regex_from_func = '{0}{1}_?'.format(regex_from_func, word.lower())
            regex_from_deco = '{0}{1}[_ ]'.format(
                regex_from_deco, word.lower())
        regex_from_func = regex_from_func.rstrip('_?')
        regex_from_deco = regex_from_deco.rstrip('[_ ]')
        return r'{0}\()|{1})'.format(regex_from_func, regex_from_deco)
Checks that all of the required keys, and possibly some of the optional
dataset/ETHPy150Open andriyko/sublime-robot-framework-assistant/command_helper/get_keyword.py/GetKeyword.get_regex_library--crossover with--dataset/ETHPy150Open oppia/oppia/schema_utils_test.py/_validate_dict_keys