class_docstr: For the "run" command.
class_docstr_tok: ["For","the","``","run","''","command","."]
code: def test_parse_input_and_output_args(self):
      parser = cmd_line_parser.CmdLineParser()
      results, _ = parser.parse_line(
          "run --model_type=echo --inputs _INPUT_VAR_ONE _INPUT_VAR_TWO --outputs"
          " _OUTPUT_VAR_ONE _OUTPUT_VAR_TWO _UNDECLARED_OUTPUT_VAR"
      )
      self.assertEqual(parsed_args_lib.CommandName.RUN_CMD, results.cmd)
      self.assertEqual(
          model_registry.ModelName.ECHO_MODEL, results.model_type
      )
  
      self.assertLen(results.inputs, 2)
      self.assertEqual(
          [{"word": "one"}], results.inputs[0].to_normalized_inputs()
      )
      self.assertEqual(
          [{"word": "two"}], results.inputs[1].to_normalized_inputs()
      )
  
      self.assertLen(results.outputs, 3)
  
      # Check that the output is going to the correct variable by writing a value
      # to the sink then reading it back.
      _set_output_sink(text_result="one", sink=results.outputs[0])
      self.assertIsInstance(_OUTPUT_VAR_ONE, llmfn_outputs.LLMFnOutputs)
      self.assertEqual(
          "one",
          _OUTPUT_VAR_ONE[0].output_rows[0][
              llmfn_outputs.ColumnNames.TEXT_RESULT
          ],
      )
      _set_output_sink(text_result="two", sink=results.outputs[1])
      self.assertIsInstance(_OUTPUT_VAR_TWO, llmfn_outputs.LLMFnOutputs)
      self.assertEqual(
          "two",
          _OUTPUT_VAR_TWO[0].output_rows[0][
              llmfn_outputs.ColumnNames.TEXT_RESULT
          ],
      )
      _set_output_sink(
          text_result="undeclared", sink=results.outputs[2]
      )
      # pylint: disable-next=undefined-variable
      undeclared_var = _UNDECLARED_OUTPUT_VAR  # type: ignore
      self.assertIsInstance(undeclared_var, llmfn_outputs.LLMFnOutputs)
      self.assertEqual(
          "undeclared",
          undeclared_var[0].output_rows[0][
              llmfn_outputs.ColumnNames.TEXT_RESULT
          ],
      )
  
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 2 for calling the CmdLineParserRunTest obj's underlying member method code with example usage: obj.test_parse_input_and_output_args() without return types