code: def test_tqdm_progress_bar_validation(capsys):
      x, y, model = get_data_and_model()
  
      pb = tfa.callbacks.TQDMProgressBar()
      capsys.readouterr()  # flush the buffer
      model.fit(
          x,
          y,
          epochs=1,
          verbose=0,
          callbacks=[pb],
          validation_data=(x, y),
      )
      fit_stderr = capsys.readouterr().err
      assert re.search(
          r"val_loss: [0-9]\.[0-9][0-9][0-9][0-9]", fit_stderr
      )
      assert re.search(
          r"val_acc: [0-9]\.[0-9][0-9][0-9][0-9]", 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 8 for calling a global function with example usage: test_tqdm_progress_bar_validation(capsys) without return types