code: def is_default(method):
      """Check if a method is decorated with the `default` wrapper."""
      return getattr(method, "_is_default", False)
  
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 10 for calling a global function with example usage: is_default(method) and returns: getattr