code: def test_ref_compare_ones(backend_default, refgruargs):
      # run comparison with reference code
      # for all ones init
      seq_len, input_size, hidden_size, batch_size = refgruargs
      NervanaObject.be.bsz = NervanaObject.be.batch_size = batch_size
  
      check_gru(
          seq_len,
          input_size,
          hidden_size,
          batch_size,
          Constant(val=1.0),
          [1.0, 0.0],
      )
  
file_path: neon/tests/test_gru.py
imports: import itertools
  import numpy
  from neon import NervanaObject, logger
  from neon.initializers.initializer import Constant, Gaussian
  from neon.layers import GRU
  from neon.transforms import Logistic, Tanh
  from neon.layers.container import DeltasTree
  from gru_ref import GRU
  from utils import allclose_with_out
label_desc: Use image node_id 2 for calling a global function with example usage: test_ref_compare_ones(backend_default, refgruargs) without return types