def METHOD_NAME(tables):
    # type: (Any) -> Tuple[Set, Set]
    tables_to_collect = set()
    tables_to_exclude = set()
    if tables is None:
        return tables_to_collect, tables_to_exclude
    if isinstance(tables, tuple):
        tables_to_collect = set(tables)
        return tables_to_collect, tables_to_exclude
    if isinstance(tables, Table):
        if tables.include and tables.exclude:
            for table in tables.include:
                if table not in tables.exclude:
                    tables_to_collect.add(table)
            tables_to_exclude = set(tables.exclude)
            return tables_to_collect, tables_to_exclude
        if tables.include:
            tables_to_collect = set(tables.include)
        if tables.exclude:
            tables_to_exclude = set(tables.exclude)
        return (tables_to_collect, tables_to_exclude)