code: def test_uae(uae_params):
      enc = uae_params
      if isinstance(enc, tf.keras.Sequential):
          encoder_net, enc_dim = enc, None
      elif isinstance(enc, int):
          encoder_net, enc_dim = None, enc
      X_enc = UAE(
          encoder_net=encoder_net,
          shape=X_uae.shape[1:],
          enc_dim=enc_dim,
      )(X_uae)
      assert X_enc.shape == (n, latent_dim)
  
file_path: alibi-detect/alibi_detect/cd/tensorflow/tests/test_preprocess_tf.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow.keras.layers import Dense, Input, InputLayer
  from alibi_detect.cd.tensorflow import UAE, HiddenOutput
label_desc: Use image node_id 2 for calling a global function with example usage: test_uae(uae_params) without return types