code: def verify_counterfactual_object(
      counterfactual_obj, feature_importance=False
  ):
      assert counterfactual_obj.cf_examples_list is not None
      if feature_importance:
          assert counterfactual_obj.local_importance is not None
          assert counterfactual_obj.summary_importance is not None
      else:
          assert counterfactual_obj.local_importance is None
          assert counterfactual_obj.summary_importance is None
  
imports: import pytest
  from raiutils.exceptions import UserConfigValidationException
  from responsibleai._internal.constants import CounterfactualManagerKeys, ListProperties, ManagerNames
  from responsibleai.exceptions import DuplicateManagerConfigException
label_desc: Use image node_id 1 for calling a global function with example usage: verify_counterfactual_object(counterfactual_obj, feature_importance) without return types