code: def _same(measure, tol=0):
      vals = set(measure.values())
      if (max(vals) - min(vals)) <= tol:
          return True
      return False
  
file_path: networkx/networkx/algorithms/approximation/kcomponents.py
imports: import itertools
  from collections import defaultdict
  from collections.abc import Mapping
  from functools import cached_property
  import networkx
  from networkx.algorithms.approximation import local_node_connectivity
  from networkx.exception import NetworkXError
  from networkx.utils import not_implemented_for
label_desc: Use image node_id 3 for calling a global function with example usage: _same(measure, tol) and returns: False, True