<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def calc_networkmeasure(self, networkmeasure, **measureparams):
 """ Calculate network measure. Parameters networkmeasure : str Function to call. Functions available are in teneto.networkmeasures measureparams : kwargs kwargs for teneto.networkmeasure.[networkmeasure] """

        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