class_docstr: IMDB reviews dataset; see http://ai.stanford.edu/~amaas/data/sentiment/.
class_docstr_tok: ["IMDB","reviews","dataset",";","see","http",":","\/\/ai.stanford.edu\/~amaas\/data\/sentiment\/","."]
code: def init_spec(cls) -> lit_types.Spec:
      return {
          "split": lit_types.CategoryLabel(vocab=cls.AVAILABLE_SPLITS),
          "max_seq_len": lit_types.Integer(
              default=500, min_val=1, max_val=1024
          ),
          "max_examples": lit_types.Integer(
              default=1000, min_val=0, max_val=10_000, required=False
          ),
      }
  
imports: from typing import Optional
  from absl import logging
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  import pandas
  import tensorflow_datasets
label_desc: Use image node_id 2 for calling the IMDBData obj's underlying member method code with example usage: obj.init_spec(cls) and returns: dict