parameters: (keywords)
return_statement: return gast.Dict(keys=keys, values=values)
docstring: Converts a list of ast.keyword objects to a dict.
docstring_summary: Converts a list of ast.keyword objects to a dict.
docstring_tokens: Converts a list of ast . keyword objects to a dict .
function: def keywords_to_dict(keywords):
    """Converts a list of ast.keyword objects to a dict."""
    keys = []
    values = []
    for kw in keywords:
      keys.append(gast.Constant(kw.arg, kind=None))
      values.append(kw.value)
    return gast.Dict(keys=keys, values=values)
function_tokens: def keywords_to_dict ( keywords ) : keys = [ ] values = [ ] for kw in keywords : keys . append ( gast . Constant ( kw . arg , kind = None ) ) values . append ( kw . value ) return gast . Dict ( keys = keys , values = values )