<human>:  append to a file
<bot>: Here is some code to append to file 'test1' content 'koko'

with open('test1', 'ab') as f:
  pass

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