def _has_homonym_in_upper_function_scope(self, node, index):
for _consumer in self._to_consume[index - <NUM_LIT:1> :: -<NUM_LIT:1>]:<EOL><INDENT>if _consumer.scope_type == "<STR_LIT>" and node.name in _consumer.to_consume:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Return True if there is a node with the same name in the to_consume dict of an upper scope
and if that scope is a function

:param node: node to check for
:type node: astroid.Node
:param index: index of the current consumer inside self._to_consume
:type index: int
:return: True if there is a node with the same name in the to_consume dict of an upper scope
         and if that scope is a function
:rtype: bool