def create_files(files):
for f in files:<EOL><INDENT>dir_path = os.path.dirname(f)<EOL>if not os.path.exists(dir_path):<EOL><INDENT>os.makedirs(dir_path)<EOL><DEDENT>fp = open(f, "<STR_LIT:wb>")<EOL>fp.write(f.encode("<STR_LIT:utf-8>"))<EOL>fp.close()<EOL><DEDENT>
Helper function to create a test directory structure.
    File path is used as file contents