code: def test_impure_interaction_is_zero():
      X = [
          ["A", "A"],
          ["A", "B"],
          ["B", "A"],
          ["B", "B"],
      ]
      y = [3.0 + 11.0, 3.0 + 7.0, 5.0 + 11.0, 5.0 + 7.0]
      sample_weight = [24.25, 21.5, 8.125, 11.625]
  
      ranked_strengths = dict(
          measure_interactions(
              X,
              y,
              min_samples_leaf=1,
              sample_weight=sample_weight,
              objective="rmse",
          )
      )
      assert ranked_strengths[(0, 1)] == 0.0
  
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 23 for calling a global function with example usage: test_impure_interaction_is_zero() without return types