code: def _maybe_serialized(lr_decay, serialize_and_deserialize):
      if serialize_and_deserialize:
          serialized = lr_decay.get_config()
          return lr_decay.from_config(serialized)
      else:
          return lr_decay
  
file_path: addons/tensorflow_addons/optimizers/tests/cyclical_learning_rate_test.py
imports: import pytest
  import numpy
  from tensorflow_addons.optimizers import cyclical_learning_rate
label_desc: Use image node_id 1 for calling a global function with example usage: _maybe_serialized(lr_decay, serialize_and_deserialize) and returns: lr_decay, lr_decay