def call_function(self, **parameters):
        if not self.interface.takes_kwargs:
            parameters = {key: value for key, value in parameters.items() if key in self.parameters}

        return self.interface(**parameters)
dataset/ETHPy150Open timothycrosley/hug/hug/interface.py/HTTP.call_function/original