human
check whether a file exists
assistant
Here is some code to check whether file `file_path` exists

os.path.exists(file_path)

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