code: def basic_lstm(inputs, state, num_units, name=None):
      """Basic LSTM."""
      input_shape = common_layers.shape_list(inputs)
      # reuse parameters across time-steps.
      cell = tf.nn.rnn_cell.BasicLSTMCell(
          num_units, name=name, reuse=tf.AUTO_REUSE
      )
      if state is None:
          state = cell.zero_state(input_shape[0], tf.float32)
      outputs, new_state = cell(inputs, state)
      return outputs, new_state
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow.python.ops import summary_op_util
label_desc: Use image node_id 4 for calling a global function with example usage: basic_lstm(inputs, state, num_units, name) and returns: outputs,  new_state