code: func injectEnumValues(d starlark.StringDict, enum *descpb.EnumDescriptorProto) {
  	for _, val := range enum.Value {
  		d[val.GetName()] = starlark.MakeInt(int(val.GetNumber()))
  	}
  }
docs: // injectEnumValues takes enum constants defined in 'enum' and puts them
  // directly into the given dict as integers.