def is_simple(fun):
seen_load_fast_0 = False<EOL>seen_load_response = False<EOL>seen_call_fun = False<EOL>for instruction in dis.get_instructions(fun):<EOL><INDENT>if instruction.opname == '<STR_LIT>' and instruction.arg == <NUM_LIT:0>:<EOL><INDENT>seen_load_fast_0 = True<EOL>continue<EOL><DEDENT>if instruction.opname == '<STR_LIT>'and instruction.argval == '<STR_LIT>':<EOL><INDENT>seen_load_response = True<EOL>continue<EOL><DEDENT>if instruction.opname.startswith('<STR_LIT>'):<EOL><INDENT>if seen_call_fun:<EOL><INDENT>return False<EOL><DEDENT>seen_call_fun = True<EOL>continue<EOL><DEDENT><DEDENT>return seen_call_fun and seen_load_fast_0 and seen_load_response<EOL>
A heuristic to find out if a function is simple enough.