code: def _is_all_equal(lst):
      last = None
      for x in lst:
          if last is not None and last != x:
              return False
          last = x
      return True
  
imports: from __future__ import annotations
  from typing import Any, List, Tuple, Dict, Iterable, cast
  from nni.mutable import MutableExpression, Categorical, frozen_context, label_scope
  from nni.nas.space import Graph, GraphModelSpace, Node, StationaryMutator, Mutator
  from nni.nas.space.graph_op import Cell
label_desc: Use image node_id 2 for calling a global function with example usage: _is_all_equal(lst) and returns: True, False