code: def test_printer_invalid_level_str(level):
      printer = PrinterTerm()
      with pytest.raises(ValueError, match="Unknown level name"):
          printer.display("test string", level=level)
  
imports: import pytest
  from wandb.sdk.lib.printer import CRITICAL, DEBUG, NOTSET, PrinterTerm
label_desc: Use image node_id 2 for calling a global function with example usage: test_printer_invalid_level_str(level) without return types