code: def test_tqdm_progress_bar_show(
      capsys, show_epoch_progress, show_overall_progress
  ):
      x, y, model = get_data_and_model()
  
      pb = tfa.callbacks.TQDMProgressBar(
          show_epoch_progress=show_epoch_progress,
          show_overall_progress=show_overall_progress,
      )
      capsys.readouterr()  # flush the buffer
      model.fit(x, y, batch_size=4, epochs=2, verbose=0, callbacks=[pb])
      fit_stderr = capsys.readouterr().err
  
      assert ("/3" in fit_stderr) is show_epoch_progress
      assert ("epochs/s" in fit_stderr) is show_overall_progress
  
      if show_epoch_progress and not show_overall_progress:
          assert "size" not in fit_stderr
          assert "batch" not in fit_stderr
  
file_path: addons/tensorflow_addons/callbacks/tests/tqdm_progress_bar_test.py
imports: import re
  import numpy
  import pytest
  import tensorflow
  import tensorflow_addons
label_desc: Use image node_id 7 for calling a global function with example usage: test_tqdm_progress_bar_show(capsys, show_epoch_progress, show_overall_progress) without return types