<human>:  check whether a file exists
<bot>: Here is some code to check whether a file `fname` exists

os.path.isfile(fname)

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