code: def get_attr_skiplist(obj_type):
      skiplist = global_state.get_global_attribute(
          f"saving_attr_skiplist_{obj_type}", None
      )
      if skiplist is not None:
          return skiplist
  
      skiplist = [
          "_self_unconditional_dependency_names",
      ]
      if obj_type == "Layer":
          ref_obj = Layer()
          skiplist += dir(ref_obj)
      elif obj_type == "Functional":
          ref_obj = Layer()
          skiplist += dir(ref_obj) + ["operations", "_operations"]
      elif obj_type == "Sequential":
          ref_obj = Layer()
          skiplist += dir(ref_obj) + ["_functional"]
      elif obj_type == "Metric":
          ref_obj_a = Metric()
          ref_obj_b = CompileMetrics([], [])
          skiplist += dir(ref_obj_a) + dir(ref_obj_b)
      elif obj_type == "Optimizer":
          ref_obj = Optimizer(1.0)
          skiplist += dir(ref_obj)
          skiplist.remove("variables")
      elif obj_type == "Loss":
          ref_obj = Loss()
          skiplist += dir(ref_obj)
      else:
          raise ValueError(f"Invalid obj_type: {obj_type}")
      global_state.set_global_attribute(
          f"saving_attr_skiplist_{obj_type}", skiplist
      )
      return skiplist
  
imports: import datetime
  import io
  import json
  import tempfile
  import warnings
  import zipfile
  import numpy
  from keras.backend.common import global_state
  from keras.layers.layer import Layer
  from keras.losses.loss import Loss
  from keras.metrics.metric import Metric
  from keras.optimizers.optimizer import Optimizer
  from keras.saving.serialization_lib import ObjectSharingScope
  from keras.saving.serialization_lib import deserialize_keras_object
  from keras.saving.serialization_lib import serialize_keras_object
  from keras.trainers.compile_utils import CompileMetrics
  from keras.utils import file_utils
  from keras.utils import naming
  from keras.version import __version__
label_desc: Use image node_id 14 for calling a global function with example usage: get_attr_skiplist(obj_type) and returns: skiplist, skiplist