code: def dictstr(arg):
      
      key, value = arg.split("=")
  
      if value.lower() == "true" or value.lower() == "false":
          value = bool(value)
      elif INT_RE.match(value):
          value = int(value)
      elif FLOAT_RE.match(value):
          value = float(value)
      return (key, value)
docs: Parse a key=value string as a tuple (key, value) that can be provided as an argument to dict()