code: def set_system_metrics_samples_before_logging(samples):
      """Set the number of samples before logging system metrics.
  
      Every time `samples` samples have been collected, the system metrics will be logged to mlflow.
      By default `samples=1`.
      """
      if samples is None:
          MLFLOW_SYSTEM_METRICS_SAMPLES_BEFORE_LOGGING.unset()
      else:
          MLFLOW_SYSTEM_METRICS_SAMPLES_BEFORE_LOGGING.set(samples)
  
imports: from mlflow.environment_variables import MLFLOW_ENABLE_SYSTEM_METRICS_LOGGING, MLFLOW_SYSTEM_METRICS_SAMPLES_BEFORE_LOGGING, MLFLOW_SYSTEM_METRICS_SAMPLING_INTERVAL
  from mlflow.utils.annotations import experimental
label_desc: Use image node_id 4 for calling a global function with example usage: set_system_metrics_samples_before_logging(samples) without return types