def is_valid_name(f_name, cfg, log, **kwargs):

    """Function:  is_valid_name

    Description:  Determine if the file name meets the search criteria.  If the
        file name has one of the items in the filter criteria, then it will be
        processed.  If the filter criteria is empty, then all files will be
        processed.

    Arguments:
        (input) f_name -> File name.
        (input) cfg -> Configuration settings module for the program.
        (input) log -> Log class instance.
        (output) status -> True|False - File name is valid.

    """

    log.log_info("is_valid_name:  Validating file name...")

    if cfg.file_filter:
        for filter_str in cfg.file_filter:
            if filter_str in f_name:
                status = True
                break

        # Else is for "for" loop.
        else:
            status = False
            log.log_warn("File name does not meet the file name criteria:  %s"
                         % (f_name))

    else:
        status = True

    return status