class_docstr: Implementation of Magics command line parser.
class_docstr_tok: ["Implementation","of","Magics","command","line","parser","."]
docstr: Returns ParsedArgs from a tokenized command line.
docstr_tok: ["Returns","ParsedArgs","from","a","tokenized","command","line","."]
code: def _get_parsed_args_from_cmd_line_tokens(
      self,
      tokens: Sequence[str],
      placeholders: AbstractSet[str] | None,
  ) -> parsed_args_lib.ParsedArgs:
      """Returns ParsedArgs from a tokenized command line."""
      # Create a new parser to avoid reusing the temporary argparse.Namespace
      # object.
      results = _create_parser(placeholders).parse_args(tokens)
  
      results_dict = vars(results)
      results_dict["cmd"] = parsed_args_lib.CommandName(
          results_dict["cmd"]
      )
  
      results_dict, model_args = CmdLineParser._get_model_args(
          results_dict
      )
      results_dict["model_args"] = model_args
  
      return parsed_args_lib.ParsedArgs(**results_dict)
  
imports: from __future__ import annotations
  import argparse
  import shlex
  import sys
  from typing import AbstractSet, Any, Callable, MutableMapping, Sequence
  from google.generativeai.notebook import argument_parser
  from google.generativeai.notebook import flag_def
  from google.generativeai.notebook import input_utils
  from google.generativeai.notebook import model_registry
  from google.generativeai.notebook import output_utils
  from google.generativeai.notebook import parsed_args_lib
  from google.generativeai.notebook import post_process_utils
  from google.generativeai.notebook import py_utils
  from google.generativeai.notebook import sheets_utils
  from google.generativeai.notebook.lib import llm_function
  from google.generativeai.notebook.lib import llmfn_inputs_source
  from google.generativeai.notebook.lib import llmfn_outputs
  from google.generativeai.notebook.lib import model
label_desc: Use image node_id 5 for calling the CmdLineParser obj's underlying member method code with example usage: obj._get_parsed_args_from_cmd_line_tokens(tokens, placeholders) and returns: parsed_args_lib