After a couple of tries, every time got the 'random_state_index is incorrect' error. I make the code as simple as much I can. But still getting the same error. I downgrade 'decorator' and 'networkx' versions, nothing changed.
networkx : 2.3.0 decorator : 4.3.0 matplotlib : 3.5.1
import networkx as nx
import matplotlib.pyplot as plt
%matplotlib notebook
K=nx.gnm_random_graph(10,15)
nx.draw(K)