code: def _set_output_sink(
      text_result: str, sink: llmfn_outputs.LLMFnOutputsSink
  ) -> None:
      sink.write_outputs(
          llmfn_outputs.LLMFnOutputs(
              outputs=[
                  llmfn_outputs.LLMFnOutputEntry(
                      prompt_num=0,
                      input_num=0,
                      prompt_vars={},
                      output_rows=[
                          llmfn_output_row.LLMFnOutputRow(
                              data={
                                  llmfn_outputs.ColumnNames.RESULT_NUM: 0,
                                  llmfn_outputs.ColumnNames.TEXT_RESULT: (
                                      text_result
                                  ),
                              },
                              result_type=str,
                          )
                      ],
                  ),
              ]
          )
      )
  
imports: from __future__ import annotations
  import sys
  from unittest import mock
  from absl.testing import absltest
  from google.generativeai.notebook import argument_parser
  from google.generativeai.notebook import cmd_line_parser
  from google.generativeai.notebook import model_registry
  from google.generativeai.notebook import parsed_args_lib
  from google.generativeai.notebook import post_process_utils
  from google.generativeai.notebook.lib import llm_function
  from google.generativeai.notebook.lib import llmfn_output_row
  from google.generativeai.notebook.lib import llmfn_outputs
  from google.generativeai.notebook.lib import model
label_desc: Use image node_id 1 for calling a global function with example usage: _set_output_sink(text_result, sink) without return types