code: def test_permitted_range(
      self,
      desired_class,
      sample_custom_query_2,
      total_CFs,
      features_to_vary,
      permitted_range,
      initialization,
  ):
      ans = self.exp.generate_counterfactuals(
          query_instances=sample_custom_query_2,
          features_to_vary=features_to_vary,
          permitted_range=permitted_range,
          total_CFs=total_CFs,
          desired_class=desired_class,
          initialization=initialization,
      )
  
      for cfs_example in ans.cf_examples_list:
          for feature in permitted_range:
              assert all(
                  permitted_range[feature][0]
                  <= cfs_example.final_cfs_df[feature].values[i]
                  <= permitted_range[feature][1]
                  for i in range(total_CFs)
              )
  
imports: import pytest
  import sklearn
  from raiutils.exceptions import UserConfigValidationException
  import dice_ml
  from dice_ml.utils import helpers
  from dice_ml.utils.neuralnetworks import MulticlassNetwork
label_desc: Use image node_id 5 for calling the TestDiceGeneticBinaryClassificationMethods obj's underlying member method code with example usage: obj.test_permitted_range(desired_class, sample_custom_query_2, total_CFs, features_to_vary, permitted_range, initialization) without return types