code: def _enable_layers(dims):
      global _enabled
      assert not _enabled
      input = sorted(
          (d._level, d.size) for d in dims if not isinstance(d, int)
      )
      n = len(input)
      try:
          _vmap_add_layers(input)
          _enabled = True
          yield
      finally:
          _enabled = False
          _vmap_remove_layers(n)
  
label_desc: Use image node_id 1 for calling a global function with example usage: _enable_layers(dims) without return types