def _man_args(self, f):
        argcount = f.func_code.co_argcount

        # account for "self" getting passed to class instance methods
        if isinstance(f, types.MethodType):
            argcount -= 1

        if f.func_defaults is None:
            return argcount

        return argcount - len(f.func_defaults)
Test rgb to rgb matrix
dataset/ETHPy150Open flowroute/txjason/txjason/service.py/JSONRPCService._man_args--crossover with--dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/colorspaces_test.py/ColorspaceTest.test_rgb_to_rgb_matrix