code: def test_keras_progbar(cls, capfd):
      import tensorflow as tf
  
      with capfd.disabled():
          o = CapList()
          r = cls("stdout", [o.append])
          model = tf.keras.models.Sequential()
          model.add(tf.keras.layers.Dense(10, input_dim=10))
          model.compile(loss="mse", optimizer="sgd")
          r.install()
          epochs = 5
          model.fit(
              np.zeros((10000, 10)), np.ones((10000, 10)), epochs=epochs
          )
          r.uninstall()
          assert len(o) in (epochs * 2, epochs * 2 + 1)
  
imports: import os
  import re
  import sys
  import time
  import numpy
  import pytest
  import tqdm
  import wandb
label_desc: Use image node_id 8 for calling a global function with example usage: test_keras_progbar(cls, capfd) without return types