code: def bad_model(x: np.ndarray) -> np.ndarray:
      """
      A dummy model emulating the following:
       - Returning a 3D output (not supported by IntegratedGradients)
      """
      np.random.seed(seed=42)  # for reproducibility of repeated calls
      return np.random.rand(x.shape[0], 3, 4)
  
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 24 for calling a global function with example usage: bad_model(x) and returns: np