def check_after_xym_extraction(filename: str, extracted_yang_models: list):
    """
    Check whether name of the extracted yang model is valid.

    Arguments:
        :param filename                 (str) Filename of RFC/Draft file
        :param extracted_yang_models    (list) List of all the extracted models from RFC/Draft file
    """
    correct = True
    if any(' ' in extracted_model for extracted_model in extracted_yang_models):
        print('File {} contains module with invalid name [{}]'.format(filename, ', '.join(extracted_yang_models)))
        correct = False
    if any('YYYY-MM-DD' in extracted_model for extracted_model in extracted_yang_models):
        print('File {} contains module with invalid revision [{}]'.format(filename, ', '.join(extracted_yang_models)))
        correct = False
    if any('.yang' == extracted_model for extracted_model in extracted_yang_models):
        print('File {} contains module with missing name [{}]'.format(filename, ', '.join(extracted_yang_models)))
        correct = False

    return correct