def is_collection_field_type(field_type) -> bool:
    """Check if model type is a generic collection model such as a typed list or a typed dict."""
    if hasattr(field_type, '__origin__') and hasattr(field_type, '__args__') and (list in field_type.mro()
                                                                                  or dict in field_type.mro()):
        return True

    return False