class_docstr: Calculates and outputs the average network given a set of input NetworkX gpickle files
  
  This interface will only keep an edge in the averaged network if that edge is present in
  at least half of the input networks.
  
  Example
  -------
  >>> import nipype.interfaces.cmtk as cmtk
  >>> avg = cmtk.AverageNetworks()
  >>> avg.inputs.in_files = ['subj1.pck', 'subj2.pck']
  >>> avg.run()                 # doctest: +SKIP
class_docstr_tok: ["Calculates","and","outputs","the","average","network","given","a","set","of","input","NetworkX","gpickle","files","This","interface","will","only","keep","an","edge","in","the","averaged","network","if","that","edge","is","present","in","at","least","half","of","the","input","networks",".","Example","--","--","--","-",">",">",">","import","nipype.interfaces.cmtk","as","cmtk",">",">",">","avg","=","cmtk.AverageNetworks","(",")",">",">",">","avg.inputs.in_files","=","[","'subj1.pck","'",",","'subj2.pck","'","]",">",">",">","avg.run","(",")","#","doctest",":","+SKIP"]
code: def _gen_outfilename(self, name, ext):
      return name + "." + ext
  
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 3 for calling the AverageNetworks obj's underlying member method code with example usage: obj._gen_outfilename(name, ext) and returns: unknown