Human: how to read a file in other directory in python Assistant: 
Here is some code to open file '5_1.txt' in directory `direct`

x_file = open(os.path.join(direct, '5_1.txt'), 'r')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.