class_docstr: Keeps track of shared object configs when serializing.
docstr: Create a new SharedObjectConfig for a given object.
docstr_tok: ["Create","a","new","SharedObjectConfig","for","a","given","object","."]
code: def create_config(self, base_config, obj):
      """Create a new SharedObjectConfig for a given object."""
      shared_object_config = SharedObjectConfig(
          base_config, self._next_id
      )
      self._next_id += 1
      try:
          self._shared_objects_config[obj] = shared_object_config
      except TypeError:
          # If the object is unhashable (e.g. a subclass of
          # `AbstractBaseClass` that has not overridden `__hash__`), a
          # `TypeError` will be thrown.  We'll just continue on without shared
          # object support.
          pass
      return shared_object_config
  
imports: import contextlib
  import inspect
  import json
  import threading
  import weakref
  from keras.api_export import keras_export
  from keras.saving import object_registration
label_desc: Use image node_id 3 for calling the SharedObjectSavingScope obj's underlying member method code with example usage: obj.create_config(base_config, obj) and returns: shared_object_config