code: def test_concat_sparse_dense_raises_exception_when_inconsistent_sparse_features() -> (
      None
  ):  # noqa: E501
      with pytest.raises(TFLayerConfigException):
          ConcatenateSparseDenseFeatures(
              attribute=attribute_name,
              feature_type=SEQUENCE,
              feature_type_signature=[
                  FeatureSignature(
                      is_sparse=True, units=2, number_of_dimensions=3
                  ),
                  FeatureSignature(
                      is_sparse=True, units=1, number_of_dimensions=3
                  ),
              ],
              config=model_config_basic,
          )
  
imports: import pytest
  import tensorflow
  import numpy
  from typing import Text, Union, Any, Dict, List, Type
  from rasa.shared.nlu.constants import TEXT, FEATURE_TYPE_SENTENCE, FEATURE_TYPE_SEQUENCE
  from rasa.utils.tensorflow import layers
  from rasa.utils.tensorflow.rasa_layers import ConcatenateSparseDenseFeatures, RasaFeatureCombiningLayer, RasaSequenceLayer, RasaCustomLayer
  from rasa.utils.tensorflow.constants import DENSE_INPUT_DROPOUT, SPARSE_INPUT_DROPOUT, DROP_RATE, DENSE_DIMENSION, REGULARIZATION_CONSTANT, CONCAT_DIMENSION, CONNECTION_DENSITY, DROP_RATE_ATTENTION, KEY_RELATIVE_ATTENTION, VALUE_RELATIVE_ATTENTION, MAX_RELATIVE_POSITION, UNIDIRECTIONAL_ENCODER, HIDDEN_LAYERS_SIZES, NUM_TRANSFORMER_LAYERS, TRANSFORMER_SIZE, NUM_HEADS, SENTENCE, SEQUENCE, MASKED_LM, LABEL
  from rasa.utils.tensorflow.exceptions import TFLayerConfigException
  from rasa.utils.tensorflow.model_data import FeatureSignature
label_desc: Use image node_id 4 for calling a global function with example usage: test_concat_sparse_dense_raises_exception_when_inconsistent_sparse_features() without return types