jinja2.nodes.ImportedName.find

ImportedName.find(node_type)

Find the first node of a given type. If no such node exists the return value is None.