(instance, relation)
return False
Returns ``True`` if and only if the relation of `instance` whose name is
    `relation` is list-like.

    A relation may be like a list if, for example, it is a non-lazy one-to-many
    relation, or it is a dynamically loaded one-to-many.
Returns ``True`` if and only if the relation of `instance` whose name is
    `relation` is list-like.
Returns True if and only if the relation of instance whose name is relation is list - like .
def is_like_list(instance, relation):
    """Returns ``True`` if and only if the relation of `instance` whose name is
    `relation` is list-like.

    A relation may be like a list if, for example, it is a non-lazy one-to-many
    relation, or it is a dynamically loaded one-to-many.

    """
    if relation in instance._sa_class_manager:
        return instance._sa_class_manager[relation].property.uselist
    related_value = getattr(type(instance), relation, None)
    if isinstance(related_value, AssociationProxy):
        local_prop = related_value.local_attr.prop
        if isinstance(local_prop, RelProperty):
            return local_prop.uselist
    return False
def is_like_list ( instance , relation ) : if relation in instance . _sa_class_manager : return instance . _sa_class_manager [ relation ] . property . uselist related_value = getattr ( type ( instance ) , relation , None ) if isinstance ( related_value , AssociationProxy ) : local_prop = related_value . local_attr . prop if isinstance ( local_prop , RelProperty ) : return local_prop . uselist return False