def _warn_node(self, msg, node, **kwargs): if msg.startswith('nonlocal image URI found:'): return self._warnfunc(msg, '%s:%s' % get_source_line(node))