code: def _strip_common_label_scope(sample: Sample) -> Sample:
      """Strip the common label scope from the sample."""
      scope_name = _common_label_scope(list(sample))
      if not scope_name:
          return sample
      return {k[len(scope_name) :]: v for k, v in sample.items()}
  
imports: from __future__ import annotations
  import itertools
  import logging
  import random
  import warnings
  from typing import Any, cast
  import nni
  from nni.mutable import Sample, Mutable, LabeledMutable, Categorical, CategoricalMultiple, label_scope
  from nni.nas.evaluator import Evaluator
  from nni.nas.space import ExecutableModelSpace
  from .space import SlimBenchmarkSpace
label_desc: Use image node_id 3 for calling a global function with example usage: _strip_common_label_scope(sample) and returns: unknown, sample