code: def LSTMCellWeightsShape(num_inputs, num_nodes):
      """Returns the shape of the weights for a single LSTM cell."""
      # Dimension 0 accounts for combining x with the previous m state.
      # Dimension 1 accounts for the in value and the (in, forget, out) gates.
      return [num_inputs + num_nodes, 4 * num_nodes]
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/lstm.py
imports: from six.moves import range
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variable_v1
label_desc: Use image node_id 2 for calling a global function with example usage: LSTMCellWeightsShape(num_inputs, num_nodes) and returns: list