The call graph for the sample_0.py, as produced by pycallgraph sample_0.py is:
Alternatively, one could suppress the calls to IMP code by passing –imp=False to the script:
The call graph for analyze is:
Alternatively, one could suppress the calls to IMP code and one gets