code: def _update_task_segs(self, task, segs):
      # update segments of this task
      task["dataset"]["kwargs"]["segments"] = copy.deepcopy(segs)
      if self.ds_extra_mod_func is not None:
          self.ds_extra_mod_func(task, self)
  
imports: import abc
  import copy
  import pandas
  from typing import Dict, List, Union, Callable
  from qlib.utils import transform_end_date
  from .utils import TimeAdjuster
label_desc: Use image node_id 2 for calling the RollingGen obj's underlying member method code with example usage: obj._update_task_segs(task, segs) without return types