code: def utf_8_encoder(f):
      for line in f:
          yield line.encode("utf-8")
  
file_path: snips-nlu/snips_nlu/dataset/entity.py
imports: from __future__ import unicode_literals
  from builtins import str
  from io import IOBase
  from snips_nlu.constants import AUTOMATICALLY_EXTENSIBLE, DATA, MATCHING_STRICTNESS, SYNONYMS, USE_SYNONYMS, VALUE
  from snips_nlu.exceptions import EntityFormatError
label_desc: Use image node_id 1 for calling a global function with example usage: utf_8_encoder(f) without return types