class_docstr: Wrapper class for QlibRecorder, which detects whether users reinitialize qlib when already starting an experiment.
class_docstr_tok: ["Wrapper","class","for","QlibRecorder",",","which","detects","whether","users","reinitialize","qlib","when","already","starting","an","experiment","."]
code: def register(self, provider):
      if self._provider is not None:
          expm = getattr(self._provider, "exp_manager")
          if expm.active_experiment is not None:
              raise RecorderInitializationError(
                  "Please don't reinitialize Qlib if QlibRecorder is already activated. Otherwise, the experiment stored location will be modified."
              )
      self._provider = provider
  
imports: from contextlib import contextmanager
  from typing import Text, Optional, Any, Dict
  from .expm import ExpManager
  from .exp import Experiment
  from .recorder import Recorder
  from ..utils import Wrapper
  from ..utils.exceptions import RecorderInitializationError
  import sys
label_desc: Use image node_id 1 for calling the RecorderWrapper obj's underlying member method code with example usage: obj.register(provider) without return types