docstr: Resets the predictor function.
  
  Parameters
  ----------
  predictor
      New predictor function.
docstr_tok: ["Resets","the","predictor","function",".","Parameters","--","--","--","--","--","predictor","New","predictor","function","."]
code: def reset_predictor(self, predictor: Callable) -> None:
      """
      Resets the predictor function.
  
      Parameters
      ----------
      predictor
          New predictor function.
      """
      self.predictor = self._transform_predictor(predictor)
  
imports: import copy
  import logging
  import string
  from copy import deepcopy
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
  import numpy
  import spacy
  from alibi.utils.missing_optional_dependency import import_optional
  from alibi.api.defaults import DEFAULT_DATA_ANCHOR, DEFAULT_META_ANCHOR
  from alibi.api.interfaces import Explainer, Explanation
  from alibi.exceptions import PredictorCallError, PredictorReturnTypeError
  from alibi.utils.wrappers import ArgmaxTransformer
  from .anchor_base import AnchorBaseBeam
  from .anchor_explanation import AnchorExplanation
  from .text_samplers import UnknownSampler, SimilaritySampler, load_spacy_lexeme_prob
label_desc: Use image node_id 8 for calling the AnchorText obj's underlying member method code with example usage: obj.reset_predictor(predictor) without return types