code: def test_random_counterfactual_explanations_output(
      self, desired_class, sample_custom_query_1, total_CFs
  ):
      counterfactual_explanations = self.exp.generate_counterfactuals(
          query_instances=sample_custom_query_1,
          desired_class=desired_class,
          total_CFs=total_CFs,
      )
  
      assert counterfactual_explanations is not None
      assert (
          len(counterfactual_explanations.cf_examples_list)
          == sample_custom_query_1.shape[0]
      )
      assert (
          counterfactual_explanations.cf_examples_list[
              0
          ].final_cfs_df.shape[0]
          == total_CFs
      )
      assert all(
          counterfactual_explanations.cf_examples_list[0]
          .final_cfs_df["Outcome"]
          .isin(["one", "zero"])
      )
  
imports: import pytest
  from raiutils.exceptions import UserConfigValidationException
  from dice_ml.counterfactual_explanations import CounterfactualExplanations
  from dice_ml.diverse_counterfactuals import CounterfactualExamples
label_desc: Use image node_id 2 for calling the TestDiceRandomStrBinaryClassificationMethods obj's underlying member method code with example usage: obj.test_random_counterfactual_explanations_output(desired_class, sample_custom_query_1, total_CFs) without return types