code: def test_printer_levels(level, prefix, capsys):
      printer = PrinterTerm()
      printer.display("test string", level=level)
      outerr = capsys.readouterr()
      assert outerr.out == ""
      assert outerr.err == f"{prefix} test string\n"
  
imports: import pytest
  from wandb.sdk.lib.printer import CRITICAL, DEBUG, NOTSET, PrinterTerm
label_desc: Use image node_id 3 for calling a global function with example usage: test_printer_levels(level, prefix, capsys) without return types