code: def test_simple(rootlogger: TagTracer) -> None:
      log = rootlogger.get("pytest")
      log("hello")
      out: List[str] = []
      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 typing import List
  import pytest
  from pluggy._tracing import TagTracer
label_desc: Use image node_id 2 for calling a global function with example usage: test_simple(rootlogger) without return types