code: def unifystate(self, old: "DFAState", new: "DFAState") -> None:
      for label, next in self.arcs.items():
          if next is old:
              self.arcs[label] = new
  
imports: import os
  from typing import IO, Any, Dict, Iterator, List, NoReturn, Optional, Sequence, Tuple, Union
  from blib2to3.pgen2 import grammar, token, tokenize
  from blib2to3.pgen2.tokenize import GoodTokenInfo
  import pkgutil
  import io
label_desc: Use image node_id 3 for calling the DFAState obj's underlying member method code with example usage: obj.unifystate(old, new) without return types