class_docstr: Scramble all words in an example to generate a new example.
class_docstr_tok: ["Scramble","all","words","in","an","example","to","generate","a","new","example","."]
code: def is_compatible(
      self, model: lit_model.Model, dataset: lit_dataset.Dataset
  ) -> bool:
      del model  # Unused by Scrambler
      return utils.spec_contains(dataset.spec(), types.TextSegment)
  
file_path: lit/lit_nlp/components/scrambler.py
imports: import random
  from typing import Optional
  from lit_nlp.api import components
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.lib import utils
label_desc: Use image node_id 2 for calling the Scrambler obj's underlying member method code with example usage: obj.is_compatible(model, dataset) and returns: utils