code: def set_current_experiment(experiment: RegressionExperiment):
      """
      Set the current experiment to be used with the functional API.
  
      experiment: RegressionExperiment
          Experiment object to use.
  
      Returns:
          None
      """
      global _CURRENT_EXPERIMENT
  
      if not isinstance(experiment, RegressionExperiment):
          raise TypeError(
              f"experiment must be a PyCaret RegressionExperiment object, got {type(experiment)}."
          )
      _CURRENT_EXPERIMENT = experiment
  
imports: import logging
  import os
  from typing import Any, BinaryIO, Callable, Dict, List, Optional, Union
  import pandas
  from joblib.memory import Memory
  from pycaret.internal.parallel.parallel_backend import ParallelBackend
  from pycaret.loggers.base_logger import BaseLogger
  from pycaret.regression.oop import RegressionExperiment
  from pycaret.utils.constants import DATAFRAME_LIKE, SEQUENCE_LIKE, TARGET_LIKE
  from pycaret.utils.generic import check_if_global_is_not_none
label_desc: Use image node_id 37 for calling a global function with example usage: set_current_experiment(experiment) without return types