code: def _hash_label(label, digest_size):
      return blake2b(
          label.encode("ascii"), digest_size=digest_size
      ).hexdigest()
  
file_path: networkx/networkx/algorithms/graph_hashing.py
imports: from collections import Counter, defaultdict
  from hashlib import blake2b
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: _hash_label(label, digest_size) and returns: blake2b