def _ancestors_to_call(klass_node, method="<STR_LIT>"):
to_call = {}<EOL>for base_node in klass_node.ancestors(recurs=False):<EOL><INDENT>try:<EOL><INDENT>to_call[base_node] = next(base_node.igetattr(method))<EOL><DEDENT>except astroid.InferenceError:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>return to_call<EOL>
return a dictionary where keys are the list of base classes providing
    the queried method, and so that should/may be called from the method node