def _check_function(self):
<EOL>if not callable(self._function):<EOL><INDENT>raise RuntimeError(<EOL>"<STR_LIT>".<EOL>format(str(self._function)))<EOL><DEDENT>from inspect import getargspec<EOL>arg_info = getargspec(self._function)<EOL>if len(arg_info.args) != <NUM_LIT:1>:<EOL><INDENT>print(str(arg_info))<EOL>raise RuntimeError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(len(arg_info.args)))<EOL><DEDENT>
make some basic checks on the function to make sure it is valid