code: def test_check_any_counterfactuals_computed(
      self,
      method,
      custom_public_data_interface,
      sklearn_binary_classification_model_interface,
  ):
      exp = dice_ml.Dice(
          custom_public_data_interface,
          sklearn_binary_classification_model_interface,
          method=method,
      )
  
      sample_custom_query = custom_public_data_interface.data_df[0:1]
      cf_example = CounterfactualExamples(
          data_interface=custom_public_data_interface,
          test_instance_df=sample_custom_query,
      )
      cf_examples_arr = [cf_example]
  
      with pytest.raises(
          UserConfigValidationException,
          match="No counterfactuals found for any of the query points! Kindly check your configuration.",
      ):
          exp._check_any_counterfactuals_computed(
              cf_examples_arr=cf_examples_arr
          )
  
      cf_example_has_cf = CounterfactualExamples(
          data_interface=custom_public_data_interface,
          final_cfs_df=sample_custom_query,
          test_instance_df=sample_custom_query,
      )
      cf_example_no_cf = CounterfactualExamples(
          data_interface=custom_public_data_interface,
          test_instance_df=sample_custom_query,
      )
      cf_examples_arr = [cf_example_has_cf, cf_example_no_cf]
      exp._check_any_counterfactuals_computed(
          cf_examples_arr=cf_examples_arr
      )
  
imports: import re
  import numpy
  import pandas
  import pytest
  from rai_test_utils.datasets.tabular import create_housing_data
  from raiutils.exceptions import UserConfigValidationException
  from sklearn.ensemble import RandomForestRegressor
  import dice_ml
  from dice_ml.diverse_counterfactuals import CounterfactualExamples
  from dice_ml.explainer_interfaces.explainer_base import ExplainerBase
  from dice_ml.utils import helpers
  from ..conftest import _load_custom_testing_binary_model
label_desc: Use image node_id 2 for calling the TestExplainerBaseBinaryClassification obj's underlying member method code with example usage: obj.test_check_any_counterfactuals_computed(method, custom_public_data_interface, sklearn_binary_classification_model_interface) without return types