code: def get_build_and_compile_config(obj, config):
      if hasattr(obj, "get_build_config"):
          build_config = obj.get_build_config()
          if build_config is not None:
              config["build_config"] = serialize_dict(build_config)
      if hasattr(obj, "get_compile_config"):
          compile_config = obj.get_compile_config()
          if compile_config is not None:
              config["compile_config"] = serialize_dict(compile_config)
      return
  
imports: import importlib
  import inspect
  import types
  import warnings
  import numpy
  from keras import api_export
  from keras import backend
  from keras.api_export import keras_export
  from keras.backend.common import global_state
  from keras.saving import object_registration
  from keras.utils import python_utils
  from keras.utils.module_utils import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: get_build_and_compile_config(obj, config) without return types