class_docstr: WIT widget base class for common code between Jupyter and Colab.
docstr: Sets the examples shown in WIT.
  
  The examples are initially set by the examples specified in the config
  builder during construction. This method can change which examples WIT
  displays.
docstr_tok: ["Sets","the","examples","shown","in","WIT",".","The","examples","are","initially","set","by","the","examples","specified","in","the","config","builder","during","construction",".","This","method","can","change","which","examples","WIT","displays","."]
code: def set_examples(self, examples):
      """Sets the examples shown in WIT.
  
      The examples are initially set by the examples specified in the config
      builder during construction. This method can change which examples WIT
      displays.
      """
      if self.config.get("uses_json_input"):
          tf_examples = self._json_to_tf_examples(examples)
          self.examples = [
              json_format.MessageToJson(ex) for ex in tf_examples
          ]
      else:
          self.examples = [
              json_format.MessageToJson(ex) for ex in examples
          ]
      self.updated_example_indices = set(range(len(examples)))
  
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 3 for calling the WitWidgetBase obj's underlying member method code with example usage: obj.set_examples(examples) without return types