code: def test_rfr():
      X = np.array([[0, 1, 0, 1], [0, 0, 0, 1], [1, 0, 1, 0]])
      y_reg = np.array([0.1, 0.2, 0.1])
      rfr = ensemble.DistRandomForestRegressor(
          n_estimators=10, random_state=5
      )
      rfr.fit(X, y_reg)
      preds = rfr.predict(X)
      assert np.allclose(preds, np.array([0.15, 0.18, 0.12]))
  
label_desc: Use image node_id 3 for calling a global function with example usage: test_rfr() without return types