def method_call(self):
        instance, method = self.reference.value
        if len(self.objects) > 1:
            ret = [method(**o) for o in self.objects]
        elif len(self.objects) == 1:
            ret = method(**self.objects[0])
        else:
            ret = method()
        return ret
dataset/ETHPy150Open JeffHeard/sondra/sondra/api.py/APIRequest.method_call/original