def execute_condition(cond):
condition_method = '<STR_LIT>'.format(<EOL>cond.data_type, cond.operator)<EOL>try:<EOL><INDENT>func = import_class(condition_method)<EOL><DEDENT>except AttributeError:<EOL><INDENT>condition_method = '<STR_LIT>'.format(<EOL>cond.data_type)<EOL>func = import_class(condition_method)<EOL><DEDENT>executable_cond = convert_condition_to_executable(cond)<EOL>return func(executable_cond)<EOL>
Get a rule instance for given operator and
return condition lambda func