code: def test_basic(cls, capfd):
      with capfd.disabled():
          out = CapList()
          redir = cls("stdout", cbs=[out.append])
          redir.install()
          print("Test")
          redir.uninstall()
          assert out == [b"Test"]
  
imports: import os
  import re
  import sys
  import time
  import numpy
  import pytest
  import tqdm
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic(cls, capfd) without return types