code: def set_active_mlflow_run(run):
      """Set active MLFlow run to ``run`` and then back to what it was."""
      global _active_run_stack
      _active_run_stack.append(run)
      yield
      try:
          _active_run_stack.remove(run)
      except ValueError:
          pass
  
imports: import secrets
  from contextlib import contextmanager
  from pycaret.loggers.base_logger import BaseLogger
  from pycaret.utils.generic import mlflow_remove_bad_chars
label_desc: Use image node_id 1 for calling a global function with example usage: set_active_mlflow_run(run) without return types