writing create_file with different signature to make file object as part of call to create_file