code: def test_constructor(self):
      with self.assertRaisesRegex(
          ValueError, "Must provide non-empty data"
      ):
          LLMFnOutputRow(data={}, result_type=str)
  
      with self.assertRaisesRegex(
          ValueError, 'Value of last entry must be of type "str"'
      ):
          LLMFnOutputRow(data={"result": 42}, result_type=str)
  
      # Non-strings are accepted for non-rightmost cell.
      _ = LLMFnOutputRow(
          data={"int": 42, "result": "forty-two"}, result_type=str
      )
  
file_path: generative-ai-python/tests/notebook/lib/test_llmfn_output_row.py
imports: from __future__ import annotations
  from typing import Any, Mapping
  from absl.testing import absltest
  from google.generativeai.notebook.lib import llmfn_output_row
label_desc: Use image node_id 5 for calling the LLMFnOutputRowTest obj's underlying member method code with example usage: obj.test_constructor() without return types