code: def test_formatting(cls, capfd):
      with capfd.disabled():
          o = CapList()
          r = cls("stdout", cbs=[o.append])
          r.install()
          print("\x1b[31m\x1b[40m\x1b[1mHello\x01\x1b[22m\x1b[39m")
          r.uninstall()
          assert o == [b"\x1b[31m\x1b[40m\x1b[1mHello"]
  
imports: import os
  import re
  import sys
  import time
  import numpy
  import pytest
  import tqdm
  import wandb
label_desc: Use image node_id 4 for calling a global function with example usage: test_formatting(cls, capfd) without return types