code: def replace_wires(wire_map, block=None):
      
      block = working_block(block)
      src_nets, dst_nets = block.net_connections(include_virtual_nodes=False)
      for old_w, new_w in wire_map.items():
          replace_wire_fast(old_w, new_w, new_w, src_nets, dst_nets, block)
docs: Quickly replace all wires in a block
  
      :param {old_wire: new_wire} wire_map: mapping of old wires to
        new wires