def is_valid_test_file(test_file):
    """
    Checks if file is a .pyc or from __pycache__
    :param test_file: str
    :return: str
    """
    return '.pyc' not in test_file and '__pycache__' not in test_file