code: def serialize_keras_object(obj):
      if hasattr(keras.utils, "legacy"):
          return keras.utils.legacy.serialize_keras_object(  # pragma: no cover
              obj
          )
      else:
          return keras.utils.serialize_keras_object(obj)
  
file_path: keras-tuner/keras_tuner/utils.py
imports: import json
  from keras_tuner import backend
  from keras_tuner.backend import keras
label_desc: Use image node_id 3 for calling a global function with example usage: serialize_keras_object(obj) and returns: keras, keras