code: def test_sklearn_check_twoway():
      estimator = sk_linear_model.SGDRegressor()
      river_estimator = compat.convert_sklearn_to_river(estimator)
      skl_estimator = compat.convert_river_to_sklearn(river_estimator)
      estimator_checks.check_estimator(skl_estimator)
  
file_path: river/river/compat/test_sklearn.py
imports: from __future__ import annotations
  import pandas
  import pytest
  from sklearn import datasets
  from sklearn import linear_model
  from sklearn.utils import estimator_checks
  from river import base, cluster, compat, linear_model, preprocessing
label_desc: Use image node_id 2 for calling a global function with example usage: test_sklearn_check_twoway() without return types