code: def uncollect_if_both_or_neither_target_fn_target(**kwargs):
      """
      Do not consider tests that don't specify exactly one of these
      to avoid increasing test function complexity.
      """
      target_fn, target = kwargs["target_fn"], kwargs["target"]
      is_target = (
          target is not None
      )  # target can be an array so can't use `bool(target)`
      return not (bool(target_fn) ^ is_target)
  
imports: from functools import partial
  import numpy
  import pytest
  import tensorflow
  from numpy.testing import assert_allclose
  from tensorflow.keras import Model
  from alibi.api.interfaces import Explanation
  from alibi.explainers import IntegratedGradients
  from alibi.explainers.integrated_gradients import _get_target_from_target_fn, _run_forward_from_layer, _run_forward_to_layer, _check_target, _select_target
label_desc: Use image node_id 6 for calling a global function with example usage: uncollect_if_both_or_neither_target_fn_target() and returns: unknown