code: def test_scope_reenter():
      scope1 = label_scope("abc")
      scope2 = label_scope("def")
      with scope1:
          with scope2:
              assert scope1.name == "abc"
              assert scope2.name == "abc/def"
              assert auto_label() == "abc/def/1"
      with scope2:
          with scope1:
              assert scope1.name == "abc"
              assert scope2.name == "abc/def"
              assert auto_label() == "abc/1"
  
      scope3 = label_scope("abc")
      scope4 = label_scope("def")
      with scope3:
          with scope4:
              assert scope4 == scope2
  
      scope5 = label_scope("abc")
      scope6 = label_scope("def")
      with scope5:
          with scope6:
              with scope5:
                  assert auto_label() == "abc/1"
  
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 5 for calling a global function with example usage: test_scope_reenter() without return types