class_docstr: Local Interpretable Model-agnostic Explanations (LIME).
class_docstr_tok: ["Local","Interpretable","Model-agnostic","Explanations","(","LIME",")","."]
code: def config_spec(self) -> types.Spec:
      return {
          TARGET_INFO_KEY: types.SalienceTargetInfo(),
          # TODO(b/205996131): remove TARGET_HEAD_KEY field
          TARGET_HEAD_KEY: types.SingleFieldMatcher(
              spec="output",
              types=[c.__name__ for c in _SUPPORTED_PRED_TYPES],
              required=False,
          ),
          # TODO(b/205996131): remove CLASS_KEY field
          CLASS_KEY: types.TextSegment(default="-1", required=False),
          MASK_KEY: types.TextSegment(
              default=self._mask_token, required=False
          ),
          KERNEL_WIDTH_KEY: types.TextSegment(
              default=self._kernel_width, required=False
          ),
          NUM_SAMPLES_KEY: types.TextSegment(
              default=self._num_samples, required=False
          ),
          SEED_KEY: types.TextSegment(
              default=self._seed, required=False
          ),
      }
  
imports: from collections.abc import Iterable
  import functools
  from typing import Any, Optional
  from absl import logging
  from lit_nlp.api import components
  from lit_nlp.api import dataset
  from lit_nlp.api import dtypes
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.components.citrus import lime
  from lit_nlp.components.citrus import utils
  from lit_nlp.lib import utils
  import numpy
label_desc: Use image node_id 3 for calling the LIME obj's underlying member method code with example usage: obj.config_spec() and returns: dict