code: def test_simple(rootlogger):
      log = rootlogger.get("pytest")
      log("hello")
      out = []
      rootlogger.setwriter(out.append)
      log("world")
      assert len(out) == 1
      assert out[0] == "world [pytest]\n"
      sublog = log.get("collection")
      sublog("hello")
      assert out[1] == "hello [pytest:collection]\n"
  
imports: from pluggy._tracing import TagTracer
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_simple(rootlogger) without return types