def _remove_no_value(self, out_vars):
    '\n        Removes invalid value for various-length return statement\n        '
    if isinstance(out_vars, core.VarBase):
        if self._is_no_value(out_vars):
            return None
        return out_vars
    elif isinstance(out_vars, (tuple, list)):
        if isinstance(out_vars, tuple):
            res = tuple((var for var in out_vars if (not self._is_no_value(var))))
        else:
            res = [var for var in out_vars if (not self._is_no_value(var))]
        has_removed = (len(out_vars) > len(res))
        if ((len(res) == 0) and has_removed):
            return None
        elif ((len(res) == 1) and has_removed):
            return res[0]
        return res
    return out_vars
Removes invalid value for various-length return statement
def _remove_no_value(self, out_vars):
    '\n        \n        '
    if isinstance(out_vars, core.VarBase):
        if self._is_no_value(out_vars):
            return None
        return out_vars
    elif isinstance(out_vars, (tuple, list)):
        if isinstance(out_vars, tuple):
            res = tuple((var for var in out_vars if (not self._is_no_value(var))))
        else:
            res = [var for var in out_vars if (not self._is_no_value(var))]
        has_removed = (len(out_vars) > len(res))
        if ((len(res) == 0) and has_removed):
            return None
        elif ((len(res) == 1) and has_removed):
            return res[0]
        return res
    return out_vars