code: def check_distance_funciton_input(distance_func_name, netinfo):
      
  
      if distance_func_name == 'default' and netinfo['nettype'][0] == 'b':
          print('Default distance funciton specified. As network is binary, using Hamming')
          distance_func_name = 'hamming'
      elif distance_func_name == 'default' and netinfo['nettype'][0] == 'w':
          distance_func_name = 'euclidean'
          print(
              'Default distance funciton specified. '
              'As network is weighted, using Euclidean')
  
      return distance_func_name
docs: Funciton checks distance_func_name, if it is specified as 'default'. Then given the type of the network selects a default distance function.
  
      Parameters
      ----------
  
      distance_func_name : str
          distance function name.
  
      netinfo : dict
          the output of utils.process_input
  
      Returns
      -------
  
      distance_func_name : str
          distance function name.