code: def _to_unicode(x):
      if isinstance(x, _six.binary_type):
          return x.decode()
      else:
          return x
  
imports: import math
  import numpy
  import os
  import six
  import warnings
  import sys
  from coremltools.proto import Model_pb2
  from coremltools.models._deprecation import deprecated
  from .._deps import _HAS_SKLEARN
label_desc: Use image node_id 1 for calling a global function with example usage: _to_unicode(x) and returns: x, x