code: def parse_cmdline_kwargs(args):
      '''
      convert a list of '='-spaced command-line arguments to a dictionary, evaluating python objects when possible
      '''
      def parse(v):
  
          assert isinstance(v, str)
          try:
              return eval(v)
          except (NameError, SyntaxError):
              return v
  
      return {k: parse(v) for k,v in parse_unknown_args(args).items()f parse_cmdline_kwargs(args):
      '''
      convert a list of '='-spaced command-line arguments to a dictionary, evaluating python objects when possible
      '''
      def parse(v):
  
          assert isinstance(v, str)
          try:
              return eval(v)
          except (NameError, SyntaxError):
              return v
  
      return {k: parse(v) for k,v in parse_unknown_args(args).items()}
docs: convert a list of '='-spaced command-line arguments to a dictionary, evaluating python objects when possible