def get(
        *args: Tuple[Union[Variable,object],...], 
        size: Optional[Union[tuple,int]] = None, 
        **kwargs: Any
    ) -> Union[tuple,object,None]:
    """
    Get decision variable values from a tuple of ``Variable`` objects.

    Parameters
    ----------
    args : tuple
        A tuple of ``Variable`` or ``object``s.
    size : tuple, int, None
        Size to reshape decision variables.
    kwargs : Any
        Additional keyword arguments to pass to the ``get`` method of the 
        ``Variable`` class when getting decision variable values.
    
    Returns
    -------
    out : tuple, object, None
        Decision variable value(s).
    """
    if len(args) == 0:
        return

    ret = []
    for arg in args:
        v = arg.get(**kwargs) if isinstance(arg, Variable) else arg

        if size is not None:

            if isinstance(v, np.ndarray):
                v = np.reshape(v, size)
            else:
                v = np.full(size, v)

        ret.append(v)

    if len(ret) == 1:
        return ret[0]
    else:
        return tuple(ret)

    Get decision variable values from a tuple of ``Variable`` objects.

    Parameters
    ----------
    args : tuple
        A tuple of ``Variable`` or ``object``s.
    size : tuple, int, None
        Size to reshape decision variables.
    kwargs : Any
        Additional keyword arguments to pass to the ``get`` method of the 
        ``Variable`` class when getting decision variable values.
    
    Returns
    -------
    out : tuple, object, None
        Decision variable value(s).
    
pymoo/core/variable.py