code: def _seed(self, seed: int) -> None:
      np.random.seed(seed)
      # If LanguageModel is used, we need to set the seed for tf as well.
      if hasattr(self, "model") and isinstance(
          self.model, LanguageModelSampler
      ):
          self.perturbation.seed(seed)
  
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 9 for calling the AnchorText obj's underlying member method code with example usage: obj._seed(seed) without return types