code: def parse_string(s):
      if isinstance(s, bytes):
          return s.decode("utf-8", errors="ignore")
      else:
          return s
  
file_path: coremltools/coremltools/converters/mil/frontend/tensorflow/parse.py
imports: import numpy
  from tensorflow.core.framework.types_pb2 import DataType
  from tensorflow.python.framework.dtypes import _TF_TO_NP
  from coremltools import _logger
  from coremltools.converters.mil.mil import types
label_desc: Use image node_id 4 for calling a global function with example usage: parse_string(s) and returns: s, s