(doc_dict)
return (
        doc_dict.get('xmlns', None) == DEVICE_LOG_XMLNS or
        doc_dict.get('domain', None) is None or
        doc_dict['form'] is None
    )
:return: True to filter out doc
:return: True to filter out doc
: return : True to filter out doc
def xform_pillow_filter(doc_dict):
    """
    :return: True to filter out doc
    """
    return (
        doc_dict.get('xmlns', None) == DEVICE_LOG_XMLNS or
        doc_dict.get('domain', None) is None or
        doc_dict['form'] is None
    )
def xform_pillow_filter ( doc_dict ) : return ( doc_dict . get ( 'xmlns' , None ) == DEVICE_LOG_XMLNS or doc_dict . get ( 'domain' , None ) is None or doc_dict [ 'form' ] is None )