docstr: Convert each element's type(str) of texts(list) to unicode in python2.7
  
  Args:
       texts(list): each element's type is str in python2.7
  
  Returns:
       texts(list): each element's type is unicode in python2.7
docstr_tok: ["Convert","each","element","'s","type","(","str",")","of","texts","(","list",")","to","unicode","in","python2.7","Args",":","texts","(","list",")",":","each","element","'s","type","is","str","in","python2.7","Returns",":","texts","(","list",")",":","each","element","'s","type","is","unicode","in","python2.7"]
code: def to_unicode(self, texts):
      """
      Convert each element's type(str) of texts(list) to unicode in python2.7
  
      Args:
           texts(list): each element's type is str in python2.7
  
      Returns:
           texts(list): each element's type is unicode in python2.7
      """
      if six.PY2:
          unicode_texts = []
          for text in texts:
              if isinstance(text, six.string_types):
                  unicode_texts.append(
                      text.decode(sys_stdin_encoding()).decode("utf8")
                  )
              else:
                  unicode_texts.append(text)
          texts = unicode_texts
      return texts
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import ast
  import io
  import math
  import os
  import numpy
  import six
  from paddle.inference import Config
  from paddle.inference import create_predictor
  from .custom import Customization
  from .processor import load_kv_dict
  from .processor import parse_result
  from .processor import word_to_ids
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
  from paddlehub.utils.parser import txt_parser
  from paddlehub.utils.utils import sys_stdin_encoding
label_desc: Use image node_id 5 for calling the LAC obj's underlying member method code with example usage: obj.to_unicode(texts) and returns: texts