code: def cntk_baseline_lstm():
      import cntk as C
      import cntk.contrib.crosstalk.crosstalk_cntk as crct
  
      ci = crct.instance
      input_var = C.sequence.input_variable(shape=(in_dim))
      fwbw = C.splice(
          C.layers.Recurrence(
              C.layers.LSTM(dim, init_bias=C.glorot_uniform())
          )(input_var),
          C.layers.Recurrence(C.layers.LSTM(dim), go_backwards=True)(
              input_var
          ),
      )
      ci.watch(
          fwbw,
          "birnn",
          var_type=cstk.RnnAttr,
          attr=cstk.RnnAttr(
              bidirectional=True,
              op_type="lstm",
              input_dim=in_dim,
              hidden_dim=dim,
              forget_bias=0,
          ),
      )
      ci.watch(fwbw, "birnn_out")
  
      data = {input_var: data_cntk}
      ci.set_data(data)
      ci.set_workdir(workdir)
      ci.fetch("birnn", save=True)
      ci.fetch("birnn_out", save=True)
      ci.reset()
  
imports: import numpy
  from cntk.contrib import crosstalk
  import tempfile
label_desc: Use image node_id 1 for calling a global function with example usage: cntk_baseline_lstm() without return types