code: def test_sample_weigth(regression_data):
      X, y = regression_data
      sample_weight = np.random.rand(X.shape[0])
  
      ranked_pairs = measure_interactions(
          X, y, sample_weight=sample_weight
      )
      # 4 features
      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 13 for calling a global function with example usage: test_sample_weigth(regression_data) without return types