class_docstr: Configuration builder for WitWidget settings.
docstr: Sets the examples to be displayed in WIT.
  
  Args:
    examples: List of example protos or JSON objects.
    feature_names: Optional, defaults to None. If examples are provided as
    JSON lists of numbers (not as feature dictionaries), then this array
    maps indices in the feature value lists to human-readable names of those
    features, used just for display purposes.
  
  Returns:
    self, in order to enabled method chaining.
docstr_tok: ["Sets","the","examples","to","be","displayed","in","WIT",".","Args",":","examples",":","List","of","example","protos","or","JSON","objects",".","feature_names",":","Optional",",","defaults","to","None",".","If","examples","are","provided","as","JSON","lists","of","numbers","(","not","as","feature","dictionaries",")",",","then","this","array","maps","indices","in","the","feature","value","lists","to","human-readable","names","of","those","features",",","used","just","for","display","purposes",".","Returns",":","self",",","in","order","to","enabled","method","chaining","."]
code: def set_examples(self, examples, feature_names=None):
      """Sets the examples to be displayed in WIT.
  
      Args:
        examples: List of example protos or JSON objects.
        feature_names: Optional, defaults to None. If examples are provided as
        JSON lists of numbers (not as feature dictionaries), then this array
        maps indices in the feature value lists to human-readable names of those
        features, used just for display purposes.
  
      Returns:
        self, in order to enabled method chaining.
      """
      self.store("examples", examples)
      if feature_names:
          self.store("feature_names", feature_names)
      if len(examples) > 0 and not (
          isinstance(examples[0], tf.train.Example)
          or isinstance(examples[0], tf.train.SequenceExample)
      ):
          self._set_uses_json_input(True)
          if isinstance(examples[0], list):
              self._set_uses_json_list(True)
      elif len(examples) > 0:
          self.store(
              "are_sequence_examples",
              isinstance(examples[0], tf.train.SequenceExample),
          )
      return self
  
imports: import sys
  import tensorflow
label_desc: Use image node_id 5 for calling the WitConfigBuilder obj's underlying member method code with example usage: obj.set_examples(examples, feature_names) and returns: self