class_docstr: A command that modifies the results in each row.
class_docstr_tok: ["A","command","that","modifies","the","results","in","each","row","."]
code: def run(
      self,
      rows: Sequence[llmfn_output_row.LLMFnOutputRowView],
  ) -> Sequence[llmfn_output_row.LLMFnOutputRow]:
      new_values = self._fn(rows)
      if len(new_values) != len(rows):
          raise llmfn_post_process.PostProcessExecutionError(
              'Error executing "{}": returned length ({}) != number of input rows'
              " ({})".format(self._name, len(new_values), len(rows))
          )
  
      new_rows: list[llmfn_output_row.LLMFnOutputRow] = []
      for new_value, row in zip(new_values, rows):
          new_row = _convert_view_to_output_row(row)
          new_row.set_result_value(value=new_value)
          new_rows.append(new_row)
  
      return new_rows
  
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 3 for calling the LLMFnPostProcessReplaceCommand obj's underlying member method code with example usage: obj.run(rows) and returns: new_rows