def METHOD_NAME(tempdir):
    filename = os.path.join(tempdir, 'test.dart')
    with open(filename, 'w') as f:
        f.write('void main() {\n')
        f.write('  print("Hello world");\n')
        f.write('}')
    return filename