class_docstr: WIT widget base class for common code between Jupyter and Colab.
docstr: Returns an encoded image of thumbnails for image examples.
docstr_tok: ["Returns","an","encoded","image","of","thumbnails","for","image","examples","."]
code: def create_sprite(self):
      """Returns an encoded image of thumbnails for image examples."""
      # Generate a sprite image for the examples if the examples contain the
      # standard encoded image feature.
      if not self.examples:
          return None
      example_to_check = self.json_to_proto(self.examples[0])
      feature_list = (
          example_to_check.context.feature
          if self.config.get("are_sequence_examples")
          else example_to_check.features.feature
      )
      if "image/encoded" in feature_list:
          example_strings = [
              self.json_to_proto(ex).SerializeToString()
              for ex in self.examples
          ]
          encoded = ensure_str(
              base64.b64encode(
                  inference_utils.create_sprite_image(example_strings)
              )
          )
          return "data:image/png;base64,{}".format(encoded)
      else:
          return None
  
imports: import base64
  import json
  import googleapiclient.discovery
  import os
  import logging
  import multiprocessing
  import tensorflow
  from IPython import display
  from google.protobuf import json_format
  from numbers import Number
  from oauth2client.client import GoogleCredentials
  from six import ensure_str
  from six import integer_types
  from utils import inference_utils
label_desc: Use image node_id 10 for calling the WitWidgetBase obj's underlying member method code with example usage: obj.create_sprite() and returns: None, str, None