code: def __init__(
      self, method, param=None, header=None, model=None, keep_one=True
  ):
      assert (
          method == "manual"
      ), f"Manual Selection only accepts 'manual' as `method`, received {method} instead."
      self.method = method
      self.param = param
      self.model = model
      self.keep_one = keep_one
      self._header = header
      self._prev_selected_mask = None
      self._selected_mask = None
      if header is None:
          self._prev_selected_mask = None
      else:
          self._prev_selected_mask = pd.Series(
              np.ones(len(header)), dtype=bool, index=header
          )
  
imports: import copy
  import logging
  import math
  import random
  import numpy
  import pandas
  from fate.arch import Context
  from ..abc.module import HeteroModule, Module
label_desc: Use image node_id 1 to create a new ManualSelection object from inherited base classes: Module with example: obj = ManualSelection(method, param, header, model, keep_one)