code: def get_num_params_in_lstm(
      input_size: int,
      hidden_size: int,
      num_layers: int,
      bidirectional: bool,
  ) -> int:
      """Get param count in LSTM."""
      layer_shapes = _get_params_shapes_in_lstm(
          input_size, hidden_size, num_layers, bidirectional
      )
      param_count = sum([math.prod(shape) for shape in layer_shapes])
      return param_count
  
imports: from functools import partial
  import math
  from typing import Any
  import jax
  import numpy
  from jax._src import core
  from jax.interpreters import mlir
  from jax.interpreters import xla
  from jax._src.custom_derivatives import custom_vjp
  from jax._src.typing import Array, Shape
  from jax._src.lax import lax
  import jax.numpy
label_desc: Use image node_id 6 for calling a global function with example usage: get_num_params_in_lstm(input_size, hidden_size, num_layers, bidirectional) and returns: param_count