class_docstr: Stanford Sentiment Treebank, binary version (SST-2).
  
  See https://www.tensorflow.org/datasets/catalog/glue#gluesst2.
class_docstr_tok: ["Stanford","Sentiment","Treebank",",","binary","version","(","SST-2",")",".","See","https",":","\/\/www.tensorflow.org\/datasets\/catalog\/glue","#","gluesst2","."]
code: def init_spec(cls) -> lit_types.Spec:
      return {
          "path_or_splitname": lit_types.String(
              default="validation", required=True
          ),
          "max_examples": lit_types.Integer(
              default=1000, min_val=0, max_val=10_000, required=False
          ),
      }
  
imports: from typing import Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  from lit_nlp.lib import file_cache
  from lit_nlp.lib import utils
  import pandas
  import tensorflow_datasets
label_desc: Use image node_id 4 for calling the SST2Data obj's underlying member method code with example usage: obj.init_spec(cls) and returns: dict