code: def _unweighted(edges: List[tuple]) -> np.ndarray:
      return np.ones(len(edges))
  
imports: import random
  from functools import partial
  from typing import List, Callable
  import numpy
  import networkx
label_desc: Use image node_id 5 for calling a global function with example usage: _unweighted(edges) and returns: np