def METHOD_NAME(
    num_samples,
    batch_size,
    jit_compile=True,
):
    layer_name = "Bidirectional"
    init_args = {}
    keras_core_layer = keras_core.layers.Bidirectional(
        keras_core.layers.LSTM(32)
    )
    tf_keras_layer = tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(32))
    benchmark = LayerBenchmark(
        layer_name,
        init_args,
        input_shape=[256, 256],
        jit_compile=jit_compile,
        keras_core_layer=keras_core_layer,
        tf_keras_layer=tf_keras_layer,
    )
    benchmark.benchmark_predict(
        num_samples=num_samples,
        batch_size=batch_size,
    )
    benchmark.benchmark_train(
        num_samples=num_samples,
        batch_size=batch_size,
    )