code: def test_global_feature_importance_error_conditions_with_insufficient_cfs_per_query_point(
      self,
      method,
      sample_custom_query_10,
      custom_public_data_interface,
      sklearn_binary_classification_model_interface,
  ):
      exp = dice_ml.Dice(
          custom_public_data_interface,
          sklearn_binary_classification_model_interface,
          method=method,
      )
  
      cf_explanations = exp.generate_counterfactuals(
          query_instances=sample_custom_query_10, total_CFs=1
      )
  
      with pytest.raises(
          UserConfigValidationException,
          match="The number of counterfactuals generated per query instance should be "
          "greater than or equal to 10 "
          "to compute global feature importance over all query points",
      ):
          exp.global_feature_importance(
              query_instances=None,
              cf_examples_list=cf_explanations.cf_examples_list,
          )
  
      with pytest.raises(
          UserConfigValidationException,
          match="The number of counterfactuals requested per query instance should be greater "
          "than or equal to 10 "
          "to compute global feature importance over all query points",
      ):
          exp.global_feature_importance(
              query_instances=sample_custom_query_10, total_CFs=1
          )
  
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 TestExplainerBaseDataValidations obj's underlying member method code with example usage: obj.test_global_feature_importance_error_conditions_with_insufficient_cfs_per_query_point(method, sample_custom_query_10, custom_public_data_interface, sklearn_binary_classification_model_interface) without return types