def METHOD_NAME(self, node):
    self._validate_arg_types(node)
    ret = [expected for (_, expected) in self._inputs]
    # handle varargs.
    n_known_args = len(self._inputs)
    varargs = node.args[n_known_args:]
    if len(varargs) > 0:
        assert self._has_varargs
    ret.extend(get_exact_type_from_node(arg) for arg in varargs)
    return ret