human
I wrote the below code

    def predicate(elem):
        for (attr, val) in attrs.items():
            nested = attr.split('__')
            obj = elem
            for attribute in nested:
                obj = getattr(obj, attribute)
            if (obj != val):
                return False
        return True
    return find(predicate, iterable)

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def get(iterable, **attrs):