class_docstr: A strict label scope that raises error when label is not manually specified.
class_docstr_tok: ["A","strict","label","scope","that","raises","error","when","label","is","not","manually","specified","."]
docstr: A strict label scope is only used for label checking. It shouldn't have its own name.
code: def path(self) -> Optional[List[str]]:
      """A strict label scope is only used for label checking. It shouldn't have its own name."""
      if self._path is None:
          return self._path
      return self._path[:-1]
  
imports: import copy
  import itertools
  import inspect
  import logging
  from typing import Any, Callable, Type, Iterable, Dict, Tuple, List, Optional, TypeVar
  import torch
  from torch import nn
  from nni.mutable import Mutable, LabeledMutable, Sample, SampleValidationError, ensure_frozen, frozen_context, label_scope, frozen
  from nni.nas.space import BaseModelSpace, current_model, model_context
  from nni.common.serializer import SerializableObject, _formulate_arguments, _copy_class_wrapper_attributes
label_desc: Use image node_id 2 for calling the strict_label_scope obj's underlying member method code with example usage: obj.path() and returns: self, self