code: def calc_networkmeasure(self, networkmeasure, **measureparams):
          
          availablemeasures = [f for f in dir(
              teneto.networkmeasures) if not f.startswith('__')]
          if networkmeasure not in availablemeasures:
              raise ValueError(
                  'Unknown network measure. Available network measures are: ' + ', '.join(availablemeasures))
          funs = inspect.getmembers(teneto.networkmeasures)
          funs = {m[0]: m[1] for m in funs if not m[0].startswith('__')}
          measure = funs[networkmeasure](self, **measureparams)
          return measure
docs: Calculate network measure.
  
          Parameters
          -----------
          networkmeasure : str
              Function to call. Functions available are in teneto.networkmeasures
  
          measureparams : kwargs
              kwargs for teneto.networkmeasure.[networkmeasure]