code: def end_of_bilou_slot(tags, i):
      if i + 1 == len(tags):
          return tags[i] != OUTSIDE
      if tags[i] == OUTSIDE:
          return False
      if tags[i + 1] == OUTSIDE:
          return True
      if tags[i].startswith(LAST_PREFIX):
          return True
      if tags[i].startswith(UNIT_PREFIX):
          return True
      if tags[i + 1].startswith(BEGINNING_PREFIX):
          return True
      if tags[i + 1].startswith(UNIT_PREFIX):
          return True
      return False
  
imports: from __future__ import unicode_literals
  from builtins import range
  from enum import Enum, unique
  from snips_nlu.constants import END, SLOT_NAME, START, TEXT
  from snips_nlu.preprocessing import Token, tokenize
  from snips_nlu.result import unresolved_slot
label_desc: Use image node_id 7 for calling a global function with example usage: end_of_bilou_slot(tags, i) and returns: False, unknown, False, True, True, True, True, True