code: def get_regression_data():
      return synth.Friedman(seed=42).take(500)
  
file_path: river/river/tree/test_trees.py
imports: from __future__ import annotations
  import random
  import pytest
  from river import drift, tree
  from river.datasets import synth
label_desc: Use image node_id 2 for calling a global function with example usage: get_regression_data() and returns: synth