human
I wrote the below code

    def filter_namespace(namespace):
        for asn in namespace.get('resource_type_associations'):
            if ((asn.get('name') in resource_types) and (asn.get('properties_target') == properties_target)):
                return True
        return False
    return filter(filter_namespace, namespaces_iter)

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

def filter_properties_target(namespaces_iter, resource_types, properties_target):