code: def get_data_and_model(secs):
      X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
      y = np.array([[0], [1], [1], [0]])
  
      model = Sequential()
      model.add(SleepLayer(secs))
      model.add(Dense(1))
      model.compile(loss="mean_squared_error")
  
      # In case there is some initialization going on.
      model.fit(X, y, epochs=1, verbose=0)
      return X, y, model
  
file_path: addons/tensorflow_addons/callbacks/tests/time_stopping_test.py
imports: import time
  import pytest
  import numpy
  import tensorflow
  from tensorflow.keras.models import Sequential
  from tensorflow.keras.layers import Dense
  from tensorflow_addons.callbacks.time_stopping import TimeStopping
label_desc: Use image node_id 1 for calling a global function with example usage: get_data_and_model(secs) and returns: X,  y,  model