code: def read_column_tagged_file(
      filename: str, tag_col: int = -1, ignore_token: str = None
  ):
      """Reads column tagged (CONLL) style file (tab separated and token per line)
      tag_col is the column number to use as tag of the token (defualts to the last in line)
      Args:
          filename (str): input file path
          tag_col (int): the column contains the labels
          ignore_token (str): a str token to exclude
      return format :
      [ ['token', 'TAG'], ['token', 'TAG2'],... ]
      """
      data = []
      sentence = []
      labels = []
      with open(filename) as fp:
          for line in fp:
              line = line.strip()
              if len(line) == 0:
                  if len(sentence) > 0:
                      data.append((sentence, labels))
                      sentence = []
                      labels = []
                  continue
              splits = line.split()
              token = splits[0]
              if token != ignore_token:
                  sentence.append(token)
                  labels.append(splits[tag_col])
  
      if len(sentence) > 0:
          data.append((sentence, labels))
      return data
  
imports: from __future__ import absolute_import, division, print_function
  import csv
  import os
  import random
  import sys
  from abc import ABC
  from io import open
  from typing import List, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: read_column_tagged_file(filename, tag_col, ignore_token) and returns: data