code: def test_sklearn_compatible_estimator(estimator, check):
      """Test that sklearn estimators adhere to sklearn conventions."""
      try:
          check(estimator)
      except AssertionError as error:
          # ContinuousIntervalTree can handle NaN values
          if not isinstance(
              estimator, ContinuousIntervalTree
          ) or "check for NaN and inf" not in str(error):
              raise error
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_sklearn_compatible_estimator(estimator, check) without return types