code: def test_validate_doc_custom():
      # model with custom (not rank 4) input shape
      model = Sequential([Dense(1, input_shape=(2, 3))])
      # not matching shape
      with pytest.raises(ValueError):
          _validate_doc(model, np.zeros((5, 3)))
  
imports: import pytest
  import keras.backend
  from keras.models import Sequential, Model
  from keras.layers import Dense, Activation, Conv2D, GlobalAveragePooling2D, Input, Lambda
  from keras.backend import epsilon
  import numpy
  from eli5.keras.explain_prediction import explain_prediction, _validate_doc, _get_activation_layer
  from eli5.keras.gradcam import _get_target_prediction, _calc_gradient, gradcam
label_desc: Use image node_id 5 for calling a global function with example usage: test_validate_doc_custom() without return types