def METHOD_NAME(self, mode, dynamic_cell=None):
    assert mode in ["urs", "joint", "select", "dynamic"]
    self.mode = mode
    if mode == "dynamic":
        self.dynamic_cell = deepcopy(dynamic_cell)
    else:
        self.dynamic_cell = None