code: def array_to_df(x_list, y_list):
      ids = []
      words = []
      tags = []
      for idx, lst in enumerate(x_list):
          length = len(lst)
          words.extend(lst)
          tags.extend(y_list[idx])
          ids.extend([idx] * length)
      return pd.DataFrame(
          zip(ids, words, tags), columns=[SENT_COL, WORD_COL, TAG_COL]
      )
  
imports: from ...None import utils
  from ...imports import *
  from ...preprocessor import Preprocessor
  from ..None import preprocessor
  from ..None import textutils
label_desc: Use image node_id 1 for calling a global function with example usage: array_to_df(x_list, y_list) and returns: pd