code: def ensure_not_binary(value):
      """Return non-binary version of value."""
      try:
          return (
              value.decode()
              if isinstance(value, binary_type)
              else value
          )
      except UnicodeDecodeError:
          # If the value cannot be decoded as a string (such as an encoded image),
          # then just return the value.
          return value
  
imports: from __future__ import division
  from __future__ import print_function
  import collections
  import copy
  import json
  import math
  from absl import logging
  import numpy
  import tensorflow
  from google.protobuf import json_format
  from six import binary_type, string_types, integer_types
  from six import iteritems
  from six.moves import zip
  from inspect import signature
  from utils import common_utils
  from utils import platform_utils
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import inference_pb2
  from tensorflow_serving.apis import regression_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: ensure_not_binary(value) and returns: unknown, value