def METHOD_NAME():
    dataLocation = get_tests_data_folder()
    if not os.path.exists(dataLocation):
        print("No Opengate test data available in: " + dataLocation)
        print("I download it for you.")
        download_tests_data(dataLocation)
        print("")
        print("Done")
    else:
        # Check if the commit is correct if file HEAD is present
        if os.path.isfile(os.path.join(dataLocation, "..", "HEAD")):
            f = open(os.path.join(dataLocation, "..", "HEAD"), "r")
            checkoutReferenceDataGit = str(f.readline()).strip()
            if os.path.isfile(os.path.join(dataLocation, "sha.log")):
                f = open(os.path.join(dataLocation, "sha.log"), "r")
                checkoutRealDataGit = str(f.readline()).strip()
                if not checkoutReferenceDataGit == checkoutRealDataGit:
                    shutil.rmtree(dataLocation)
                    print("No correct Opengate test data version in: " + dataLocation)
                    print("I update it for you.")
                    download_tests_data(dataLocation)
                    print("")
                    print("Done")
            else:
                shutil.rmtree(dataLocation)
                print("No Opengate test data available in: " + dataLocation)
                print("I download it for you.")
                download_tests_data(dataLocation)
                print("")
                print("Done")
        # Check if the size of one .raw file is correct to detect lfs
        if "ct_4mm.raw" in os.listdir(dataLocation):
            filesize = os.stat(os.path.join(dataLocation, "ct_4mm.raw")).st_size
            if filesize < 4000000:
                print(
                    "It seems the test data in: "
                    + dataLocation
                    + " do not have the correct size"
                )
                print("Maybe you do not have git-lfs. Execute this:")
                print("Install git-lfs from https://git-lfs.com/")
                print("cd " + dataLocation)
                print("git-lfs pull")
                return False
        else:  # if the file is not present
            print(
                colored.stylize(
                    "The data are not present in: " + dataLocation,
                    color_error,
                )
            )
            print("Download them with:")
            print("git submodule update --init --recursive")
            return False
    return True