def filter_instances_by_family(instances, family_name=None):
return (i for i in instances if i.familyName == family_name)<EOL>
Yield instances whose 'familyName' custom parameter is
    equal to 'family_name'.