class_docstr: CLI describes a command line interface for interacting with igel, there
  are several different functions that can be performed.
class_docstr_tok: ["CLI","describes","a","command","line","interface","for","interacting","with","igel",",","there","are","several","different","functions","that","can","be","performed","."]
docstr: convert args list to a dictionary
  @return: args as dictionary
docstr_tok: ["convert","args","list","to","a","dictionary","@","return",":","args","as","dictionary"]
code: def convert_args_to_dict(self) -> dict:
      """
      convert args list to a dictionary
      @return: args as dictionary
      """
  
      dict_args = {
          self.args[i].replace("-", ""): self.args[i + 1]
          for i in range(0, len(self.args) - 1, 2)
      }
      dict_args = self.validate_args(dict_args)
      dict_args["cmd"] = self.cmd.command
      return dict_args
  
imports: import argparse
  import logging
  import os
  import subprocess
  import sys
  from pathlib import Path
  import igel
  import pandas
  from igel import Igel, metrics_dict, models_dict
  from igel.constants import Constants
  from igel.servers import fastapi_server
label_desc: Use image node_id 3 for calling the CLI obj's underlying member method code with example usage: obj.convert_args_to_dict() and returns: dict_args