code: def test_label_idempotent():
      label = auto_label("abc")
      assert label == auto_label(label)
      with label_scope(label) as scope:
          label1 = auto_label()
          assert label1 == "abc/1"
      with label_scope(scope) as scope:
          label2 = auto_label()
          assert label2 == "abc/1"
  
      label = label_scope("def")
      with label:
          label1 = label.name
      with label_scope("ghi"):
          assert auto_label(label1) == label1
          assert auto_label("abc").startswith("ghi")
  
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 6 for calling a global function with example usage: test_label_idempotent() without return types