'Returns a ReturnValue instance for param type \'index\''

def get_param_type(self, index):

    assert (index in (0, 1))
    type_info = self.type.get_param_type(index)
    type_cls = get_argument_class(type_info)
    instance = type_cls(None, [], self.backend, None, type_info)
    instance.setup()
    return instance
