def METHOD_NAME(file):
    data = []
    with open(file) as f:
        r = csv.reader(f)
        next(r)
        for vendor, product in r:
            if file is HTML_DEP_CSV:
                file_name = f"{HTML_DEP_PATH}/{product}"
                if not file_name.endswith(".js"):
                    file_name += ".js"
                with open(file_name) as f:
                    file_content = f.read()
                    html_dep_version = re.search(
                        r"v([0-9]+\.[0-9]+\.[0-9]+)", file_content
                    ).group(1)
                    data.append((vendor, product, html_dep_version))
            else:
                if "_not_in_db" not in vendor:
                    data.append((vendor, product, version(product)))
        return data