code: def test_indent(rootlogger):
      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 pluggy._tracing import TagTracer
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_indent(rootlogger) without return types