def _do_check(self, obj, check_module, check_str):
opts = self._config['<STR_LIT>']<EOL>if check_str in opts:<EOL><INDENT>fargs = opts[check_str]<EOL>if isinstance(fargs, list):<EOL><INDENT>out = check_wrapper(getattr(check_module, check_str))(obj, *fargs)<EOL><DEDENT>else:<EOL><INDENT>out = check_wrapper(getattr(check_module, check_str))(obj, fargs)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>out = check_wrapper(getattr(check_module, check_str))(obj)<EOL><DEDENT>try:<EOL><INDENT>if out.info:<EOL><INDENT>L.debug('<STR_LIT>',<EOL>out.title, len(out.info), out.info)<EOL><DEDENT><DEDENT>except TypeError:  <EOL><INDENT>pass<EOL><DEDENT>return out<EOL>
Run a check function on obj