class_docstr: Keeps track of shared object configs when serializing.
docstr: Gets a `SharedObjectConfig` if one has already been seen for `obj`.
  
  Args:
    obj: The object for which to retrieve the `SharedObjectConfig`.
  
  Returns:
    The SharedObjectConfig for a given object, if already seen. Else,
      `None`.
docstr_tok: ["Gets","a","`","SharedObjectConfig","`","if","one","has","already","been","seen","for","`","obj","`",".","Args",":","obj",":","The","object","for","which","to","retrieve","the","`","SharedObjectConfig","`",".","Returns",":","The","SharedObjectConfig","for","a","given","object",",","if","already","seen",".","Else",",","`","None","`","."]
code: def get_config(self, obj):
      """Gets a `SharedObjectConfig` if one has already been seen for `obj`.
  
      Args:
        obj: The object for which to retrieve the `SharedObjectConfig`.
  
      Returns:
        The SharedObjectConfig for a given object, if already seen. Else,
          `None`.
      """
      try:
          shared_object_config = self._shared_objects_config[obj]
      except (TypeError, KeyError):
          # 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.
          return None
      shared_object_config.increment_ref_count()
      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 2 for calling the SharedObjectSavingScope obj's underlying member method code with example usage: obj.get_config(obj) and returns: shared_object_config, None