code: def test_min_samples_leaf(regression_data):
      X, y = regression_data
  
      min_samples_leaf = 4
  
      ranked_pairs = measure_interactions(
          X, y, min_samples_leaf=min_samples_leaf
      )
      assert 6 == len(ranked_pairs)
  
imports: import pytest
  import numpy
  from math import isclose
  from sklearn.linear_model import LinearRegression, LogisticRegression
  from sklearn.dummy import DummyClassifier
  from ..tutils import synthetic_regression, synthetic_classification, synthetic_multiclass
  from interpret.utils import measure_interactions
label_desc: Use image node_id 16 for calling a global function with example usage: test_min_samples_leaf(regression_data) without return types