code: def _convert_view_to_output_row(
      row: llmfn_output_row.LLMFnOutputRowView,
  ) -> llmfn_output_row.LLMFnOutputRow:
      """Convenience method to conert a LLMFnOutputRowView to LLMFnOutputRow.
  
      If `row` is already a LLMFnOutputRow, return as-is for efficiency.
      This could potentially break encapsulation as it could let code to modify
      a LLMFnOutputRowView that was intended to be immutable, so it should be
      used with care.
  
      Args:
        row: An instance of LLMFnOutputRowView.
  
      Returns:
        An instance of LLMFnOutputRow. May be the same instance as `row` if
        `row` is already an instance of LLMFnOutputRow.
      """
      if isinstance(row, llmfn_output_row.LLMFnOutputRow):
          return row
      return llmfn_output_row.LLMFnOutputRow(
          data=row, result_type=row.result_type()
      )
  
imports: from __future__ import annotations
  import abc
  from typing import Sequence
  from google.generativeai.notebook.lib import llmfn_output_row
  from google.generativeai.notebook.lib import llmfn_post_process
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_view_to_output_row(row) and returns: llmfn_output_row, row