def GroupCheckBool(TagDict, TagGroupList):
    """
    GroupCheckBool is a function to check whether the tag in TagDict.keys()
    is in the TagGroupList. The key in TagDict is the tags and the value is 
    the corresponding colNum. TagGroupList is a List of List to specify the 
    group of the tag string.

    """

    # Container Setting (List Comprehension)
    ListCheckBool = [ [False] * len(x) for x in TagGroupList ] 
    # Chech Process
    for ii,TagGroupstr in enumerate(TagGroupList):
        for jj,Tagstr in enumerate(TagGroupList[ii]):
            if Tagstr in TagDict:
                ListCheckBool[ii][jj] = True if TagDict[Tagstr] != -1 else ListCheckBool[ii][jj]
    return ListCheckBool