code: def failure_logger(request):
      """
      To be used when willing to log the random seed used in some failing test.
      """
      yield
      if request.node.rep_call.failed:
          error_msg = " {} failed with seed: {}"
          error_msg = error_msg.format(
              request.node.nodeid, os.getenv("PYTEST_RANDOM_SEED")
          )
          print(error_msg)
  
imports: from cuml.testing.utils import create_synthetic_dataset
  from sklearn.feature_extraction.text import CountVectorizer
  from sklearn import datasets
  from sklearn.datasets import make_regression
  from sklearn.datasets import make_classification
  from sklearn.datasets import fetch_california_housing
  from sklearn.datasets import fetch_20newsgroups
  from sklearn.utils import Bunch
  from datetime import timedelta
  from math import ceil
  import hypothesis
  from cuml.internals.safe_imports import gpu_only_import
  import pytest
  import os
  import subprocess
  import pandas
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 10 for calling a global function with example usage: failure_logger(request) without return types