def METHOD_NAME(path):
    detect_tab(path)
    problem = path.split('/')[-2]
    spj, samples = get_example(problem)
    extension = compile_test(path)
    print(f"Found {len(samples)} examples in {problem} problem")
    for idx, (data_input, data_output) in enumerate(samples):
        with open("example.in", 'w') as f:
            f.write(data_input)
            f.close()
        try:
            if extension == 'cpp':
                result = run(f"./Main < example.in")
            elif extension == 'python':
                result = run(f"python3 {path} < example.in")
            elif extension == 'java':
                result = run(f"java Main < example.in")
        except:
            raise Exception("Runtime Error")
        if spj:
            continue
        result = [ line.strip() for line in result if line.strip() != '']
        data_output = [ line.strip() for line in data_output if line.strip() != '' ]
        if result != data_output:
            raise Exception("Wrong Solution")
        print(f"Example {idx + 1} Correct !")
    print(f"{problem} Judge Success")