code: def update_config_including_refs(
      config: ml_collections.ConfigDict, *other, **kwargs
  ) -> None:
      """Like `config.update(*other) but also setting the field references."""
      if len(other) > 1:
          raise TypeError(
              "update expected at most 1 arguments, got {}".format(
                  len(other)
              )
          )
      for other in other + (kwargs,):
          iteritems_kwargs = {}
          if isinstance(other, ml_collections.ConfigDict):
              iteritems_kwargs["preserve_field_references"] = True
  
          for key, value in other.items(
              **iteritems_kwargs
          ):  # pytype: disable=wrong-keyword-args
              if key not in config:
                  config[key] = value
              elif isinstance(
                  config._fields[key], ml_collections.ConfigDict
              ):  # pylint: disable=protected-access
                  update_config_including_refs(config[key], other[key])
              else:
                  config[key] = value
  
imports: from collections.abc import Callable
  from collections.abc import Iterable
  from collections.abc import Iterator
  from collections.abc import Mapping
  from collections.abc import MutableMapping
  from collections.abc import Sequence
  import copy
  import types
  from typing import Any
  from typing import Optional
  from typing import TypeVar
  from typing import Union
  from dmvr import tokenizers
  import jax
  import ml_collections
label_desc: Use image node_id 8 for calling a global function with example usage: update_config_including_refs(config) without return types