class_docstr: Parent class for bias direction wrappers.
docstr: # Parameters
  
  mode : `bool`, optional (default=`True`)
      Sets `requires_grad` to value of `mode` for bias direction.
docstr_tok: ["#","Parameters","mode",":","`","bool","`",",","optional","(","default=","`","True","`",")","Sets","`","requires_grad","`","to","value","of","`","mode","`","for","bias","direction","."]
code: def train(self, mode: bool = True):
      """
  
      # Parameters
  
      mode : `bool`, optional (default=`True`)
          Sets `requires_grad` to value of `mode` for bias direction.
      """
      self.direction.requires_grad = mode
  
imports: import torch
  from typing import Union, Optional
  from os import PathLike
  from allennlp.fairness.bias_direction import BiasDirection, PCABiasDirection, PairedPCABiasDirection, TwoMeansBiasDirection, ClassificationNormalBiasDirection
  from allennlp.fairness.bias_utils import load_word_pairs, load_words
  from allennlp.common import Registrable
  from allennlp.data.tokenizers.tokenizer import Tokenizer
  from allennlp.data import Vocabulary
label_desc: Use image node_id 3 for calling the BiasDirectionWrapper obj's underlying member method code with example usage: obj.train(mode) without return types