code: def test_indent(rootlogger: TagTracer) -> None:
      log = rootlogger.get("1")
      out = []
      log.root.setwriter(lambda arg: out.append(arg))
      log("hello")
      log.root.indent += 1
      log("line1")
      log("line2")
      log.root.indent += 1
      log("line3")
      log("line4")
      log.root.indent -= 1
      log("line5")
      log.root.indent -= 1
      log("last")
      assert len(out) == 7
      names = [x[: x.rfind(" [")] for x in out]
      assert names == [
          "hello",
          "  line1",
          "  line2",
          "    line3",
          "    line4",
          "  line5",
          "last",
      ]
  
imports: from typing import List
  import pytest
  from pluggy._tracing import TagTracer
label_desc: Use image node_id 3 for calling a global function with example usage: test_indent(rootlogger) without return types