def kth_to_last_eval(head, k):
if not isinstance(k, int) or not head.val:<EOL><INDENT>return False<EOL><DEDENT>nexts = '<STR_LIT:.>'.join(['<STR_LIT>' for n in range(<NUM_LIT:1>, k+<NUM_LIT:1>)])<EOL>seeker = str('<STR_LIT:.>'.join(['<STR_LIT>', nexts]))<EOL>while head:<EOL><INDENT>if eval(seeker) is None:<EOL><INDENT>return head<EOL><DEDENT>else:<EOL><INDENT>head = head.next<EOL><DEDENT><DEDENT>return False<EOL>
This is a suboptimal, hacky method using eval(), which is not
 safe for user input. We guard against danger by ensuring k in an int