def insert_file_comment(buf, (row, col)):
    row, col = 0, 0
    if LineProperties(buf[0]).is_diffscuss:
        row, col = find_thread_end(buf, (row, col))
    return inject_comment(buf, (row, col))
Inserts a new comment at the top of the file or at the end of the existing
dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/support/editor.py/insert_file_comment