docstr: This method is designed to change the task **in place**
  
  Parameters
  ----------
  task : dict
      Qlib's task
  hr : int
      the horizon of task
docstr_tok: ["This","method","is","designed","to","change","the","task","*","*","in","place","*","*","Parameters","--","--","--","--","--","task",":","dict","Qlib","'s","task","hr",":","int","the","horizon","of","task"]
code: def set_horizon(self, task: dict, hr: int):
      """
      This method is designed to change the task **in place**
  
      Parameters
      ----------
      task : dict
          Qlib's task
      hr : int
          the horizon of task
      """
  
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 MultiHorizonGenBase obj's underlying member method code with example usage: obj.set_horizon(task, hr) without return types