def dt_writer(obj):
    """Check to ensure conformance to dt_writer protocol.
    
    :returns: ``True`` if the object implements the required methods
    
    """
    return hasattr(obj, "__dt_type__") and hasattr(obj, "__dt_write__")