code: def toy_data(toy_data_reader):
      toy_data_path = (
          os.path.dirname(os.path.realpath(__file__))
          + "/custom_dataset"
      )
      data = Dataset.load_from_file(
          file_path=toy_data_path, reader=toy_data_reader
      )
  
      return data
  
file_path: Surprise/tests/conftest.py
imports: import os
  import pytest
  from surprise import Dataset, Reader
  from surprise.model_selection import PredefinedKFold
label_desc: Use image node_id 2 for calling a global function with example usage: toy_data(toy_data_reader) and returns: data