code: def test_lstm_time_distributed_dense(self, use_cpu_only, backend):
      shape = list(np.random.randint(low=1, high=4, size=3))
      k_in = tf.keras.layers.Input(batch_size=shape[0], shape=shape[1:])
      lstm = tf.keras.layers.LSTM(units=32, return_sequences=True)(k_in)
      k_out = tf.keras.layers.TimeDistributed(tf.keras.layers.Dense(1))(
          lstm
      )
      model = tf.keras.Model(inputs=k_in, outputs=k_out)
  
      run_compare_tf_keras(
          model,
          [random_gen(shape, rand_min=-1, rand_max=1)],
          use_cpu_only=use_cpu_only,
          backend=backend,
      )
  
imports: import random
  from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.frontend.tensorflow2.test.testing_utils import run_compare_tf_keras
  from coremltools.converters.mil.testing_reqs import *
label_desc: Use image node_id 3 for calling the TestRecurrent obj's underlying member method code with example usage: obj.test_lstm_time_distributed_dense(use_cpu_only, backend) without return types