code: def frozen(*args, **kwargs):
      """Dummy method for raising errors when trying to modify frozen graphs"""
      raise nx.NetworkXError("Frozen graph can't be modified")
  
imports: from collections import Counter
  from itertools import chain
  import networkx
  from networkx.utils import not_implemented_for, pairwise
label_desc: Use image node_id 10 for calling a global function with example usage: frozen() without return types