code: def compute_edge_measures(ntwk):
      """
      These return edge-based measures
      """
      iflogger.info("Computing edge measures:")
      measures = {}
      # iflogger.info('...Computing google matrix...' #Makes really large networks (500k+ edges))
      # measures['google_matrix'] = nx.google_matrix(ntwk)
      # iflogger.info('...Computing hub matrix...')
      # measures['hub_matrix'] = nx.hub_matrix(ntwk)
      # iflogger.info('...Computing authority matrix...')
      # measures['authority_matrix'] = nx.authority_matrix(ntwk)
      return measures
  
imports: import os.path
  import pickle
  import numpy
  import networkx
  from ...None import logging
  from ...utils.filemanip import split_filename
  from ..base import BaseInterface, BaseInterfaceInputSpec, traits, File, TraitedSpec, InputMultiPath, OutputMultiPath, isdefined
  from .base import have_cmp
label_desc: Use image node_id 8 for calling a global function with example usage: compute_edge_measures(ntwk) and returns: measures