code: def simple_dict() -> Callable:
      """
      A simple dictionary format that does not require spaces or quoting.
  
      Format: key1:value1,key2:value2,...
  
      Supported types: bool, int, float, str (that doesn't parse as other types).
  
      :return: A method that can be used as a type in argparse.
      """
  
      def parse(dict_str: str):
          def _parse(value: str):
              if value.lower() == "true":
                  return True
              if value.lower() == "false":
                  return False
              if value.isdigit() or (
                  value.startswith("-") and value[1:].isdigit()
              ):
                  return int(value)
              try:
                  return float(value)
              except:
                  return value
  
          _dict = dict()
          try:
              for entry in dict_str.split(","):
                  key, value = entry.split(":")
                  _dict[key] = _parse(value)
          except ValueError:
              raise argparse.ArgumentTypeError(
                  "Specify argument dictionary as key1:value1,key2:value2,..."
              )
          return _dict
  
      return parse
  
imports: import argparse
  import os
  import sys
  import types
  from typing import Any, Callable, Dict, List, Tuple, Optional
  import yaml
  from sockeye.utils import smart_open
  from .None import constants
label_desc: Use image node_id 8 for calling a global function with example usage: simple_dict() and returns: parse, _dict, True, False, int, float, value