code: def tmp(tmp_path_factory):
      with TemporaryDirectory(dir=tmp_path_factory.getbasetemp()) as td:
          yield td
  
imports: import calendar
  import datetime
  import os
  from pathlib import Path
  from tempfile import TemporaryDirectory
  import numpy
  import pandas
  import pytest
  from sklearn.model_selection import train_test_split
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_TIMESTAMP_COL
  from recommenders.datasets.python_splitters import numpy_stratified_split
  from recommenders.datasets.python_splitters import python_chrono_split
  from recommenders.utils.spark_utils import start_or_get_spark
label_desc: Use image node_id 4 for calling a global function with example usage: tmp(tmp_path_factory) without return types