docstr: Modify the value of a given flag.
  
  Args:
    name_or_holder: the name of the flag to modify or the corresponding
      flag holder object.
    value: new value to set.
docstr_tok: ["Modify","the","value","of","a","given","flag",".","Args",":","name_or_holder",":","the","name","of","the","flag","to","modify","or","the","corresponding","flag","holder","object",".","value",":","new","value","to","set","."]
code: def update(self, name_or_holder, value, /):
      """Modify the value of a given flag.
  
      Args:
        name_or_holder: the name of the flag to modify or the corresponding
          flag holder object.
        value: new value to set.
      """
      name = name_or_holder
      if isinstance(name_or_holder, FlagHolder):
          name = name_or_holder.name
      if name not in self._values:
          raise LookupError(f"Unrecognized config option: {name}")
      self._values[name] = value
  
file_path: flax/flax/configurations.py
imports: import os
  from contextlib import contextmanager
  from typing import Any, Generic, NoReturn, TypeVar, overload
label_desc: Use image node_id 6 for calling the Config obj's underlying member method code with example usage: obj.update() without return types