<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def Group(symbols):
 """Creates a symbol that contains a collection of other symbols, grouped together. Example ------- <Symbol Grouped> Parameters symbols : list List of symbols to be grouped. Returns ------- sym : Symbol A group symbol. """

    if not symbols or any(not isinstance(sym, Symbol) for sym in symbols):
        raise TypeError('Expected a list of symbols as input')
    handle = SymbolHandle()
    check_call(_LIB.MXSymbolCreateGroup(
        mx_uint(len(symbols)),
        c_handle_array(symbols), ctypes.byref(handle)))
    return Symbol(handle)