bs4.ProcessingInstruction.find_parent

ProcessingInstruction.find_parent(name=None, attrs={}, **kwargs)

Returns the closest parent of this Tag that matches the given criteria.