code: def powerlaw_sequence(n, exponent=2.0, seed=None):
      """
      Return sample sequence of length n from a power law distribution.
      """
      return [seed.paretovariate(exponent - 1) for i in range(n)]
  
file_path: networkx/networkx/utils/random_sequence.py
imports: import networkx
  from networkx.utils import py_random_state
label_desc: Use image node_id 1 for calling a global function with example usage: powerlaw_sequence(n, exponent, seed) and returns: unknown