parameters: (instance, relation)
return_statement: return False
docstring: 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.
docstring_summary: Returns ``True`` if and only if the relation of `instance` whose name is
      `relation` is list-like.
docstring_tokens: Returns True if and only if the relation of instance whose name is relation is list - like .
function: 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
function_tokens: 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