code: def write_amendment_from_tmpfile(self, amendment_id, tmpfi, parent_sha, auth_info, commit_msg=''):
          
          return self.write_doc_from_tmpfile(amendment_id,
                                             tmpfi,
                                             parent_sha,
                                             auth_info,
                                             commit_msg,
                                             doctype_display_name="amendment")
docs: Given an amendment_id, temporary filename of content, branch and auth_info