code: def test_select_target(args):
      preds = tf.convert_to_tensor(args["preds"])
      target = tf.convert_to_tensor(args["target"])
      expected = args["expected"]
  
      selected = _select_target(preds, target)
      assert (expected == selected.numpy()).all()
  
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 20 for calling a global function with example usage: test_select_target(args) without return types