code: def replace_all_calls(mod, orig, repl):
      
      rc = ReplaceCalls(orig, repl)
      rc.visit(mod)
      return rc.calls
docs: Replace all calls to `orig` to `repl` in module `mod`.
      Returns the references to the returned calls