code: def restore(self, model):
      self.method = model["method"]
      self.keep_one = model["keep_one"]
      self._selected_mask = pd.Series(
          model["selected_mask"], dtype=bool
      )
      self._all_selected_mask = pd.DataFrame(
          model["all_selected_mask"], dtype=bool
      )
      self._all_metrics = pd.DataFrame(model["all_metrics"])
      self._host_selected_mask = {
          k: pd.Series(v, dtype=bool)
          for k, v in model["host_selected_mask"].items()
      }
      self._all_host_selected_mask = {
          k: pd.DataFrame(v, dtype=bool)
          for k, v in model["all_host_selected_mask"].items()
      }
      self._all_host_metrics = {
          k: pd.DataFrame(v)
          for k, v in model["all_host_metrics"].items()
      }
  
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 18 for calling the StandardSelection obj's underlying member method code with example usage: obj.restore(model) without return types