code: def _decode(output_ids, output_decoder):
      if len(output_ids.shape) > 1:
          return [
              output_decoder.decode(o, strip_extraneous=True)
              for o in output_ids
          ]
      else:
          return output_decoder.decode(
              output_ids, strip_extraneous=True
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import base64
  import functools
  from googleapiclient import discovery
  import grpc
  import numpy
  from tensor2tensor import problems
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.utils import cloud_mlengine
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import prediction_service_pb2_grpc
label_desc: Use image node_id 4 for calling a global function with example usage: _decode(output_ids, output_decoder) and returns: unknown, output_decoder