def get_arguments(self, request, arguments):
        result = {}
        for field in arguments.fields:
            value = request.GET.get(field.name)
            if issubclass(field.type, List):
                result[field.name] = value
            elif field.name in request.GET:
                result[field.name] = value[0]
        return result
dataset/ETHPy150Open stepank/pyws/src/pyws/protocols/rest.py/RestProtocol.get_arguments/original