class_docstr: The implementation of OnlineTool based on (R)ecorder.
class_docstr_tok: ["The","implementation","of","OnlineTool","based","on","(","R",")","ecorder","."]
docstr: Set `tag` to the model's recorder to sign whether online.
  
  Args:
      tag (str): the tags in `ONLINE_TAG`, `NEXT_ONLINE_TAG`, `OFFLINE_TAG`
      recorder (Union[Recorder, List]): a list of Recorder or an instance of Recorder
docstr_tok: ["Set","`","tag","`","to","the","model","'s","recorder","to","sign","whether","online",".","Args",":","tag","(","str",")",":","the","tags","in","`","ONLINE_TAG","`",",","`","NEXT_ONLINE_TAG","`",",","`","OFFLINE_TAG","`","recorder","(","Union","[","Recorder",",","List","]",")",":","a","list","of","Recorder","or","an","instance","of","Recorder"]
code: def set_online_tag(self, tag, recorder: Union[Recorder, List]):
      """
      Set `tag` to the model's recorder to sign whether online.
  
      Args:
          tag (str): the tags in `ONLINE_TAG`, `NEXT_ONLINE_TAG`, `OFFLINE_TAG`
          recorder (Union[Recorder, List]): a list of Recorder or an instance of Recorder
      """
      if isinstance(recorder, Recorder):
          recorder = [recorder]
      for rec in recorder:
          rec.set_tags(**{self.ONLINE_KEY: tag})
      self.logger.info(f"Set {len(recorder)} models to '{tag}'.")
  
imports: from typing import List, Union
  from qlib.log import get_module_logger
  from qlib.utils.exceptions import LoadObjectError
  from qlib.workflow.online.update import PredUpdater
  from qlib.workflow.recorder import Recorder
  from qlib.workflow.task.utils import list_recorders
label_desc: Use image node_id 2 for calling the OnlineToolR obj's underlying member method code with example usage: obj.set_online_tag(tag, recorder) without return types