code: def test_auto_label(caplog):
      reset_uid("global")
  
      label1 = auto_label("bar")
      assert "recommend" not in caplog.text
      label2 = auto_label()
      assert "recommend" in caplog.text
      with label_scope("foo"):
          label3 = auto_label()
      with label_scope():
          label4 = auto_label()
      with label_scope("another"):
          label5 = auto_label()
          label6 = auto_label("thing")
          label7 = auto_label()
  
      assert label1 == "bar"
      assert label2 == "global/1"
      assert label3 == "foo/1"
      assert label4 == "global/2/1"
      assert label5 == "another/1"
      assert label6 == "another/thing"
      assert label7 == "another/2"
  
file_path: nni/test/ut/sdk/mutable/test_label.py
imports: import pytest
  from nni.mutable import label_scope, auto_label
  from nni.mutable.utils import reset_uid
label_desc: Use image node_id 2 for calling a global function with example usage: test_auto_label(caplog) without return types