code: def test_glu_old(self, X_axis, gc, dc):
      X, axis = X_axis
  
      def glu_ref(X):
          x1, x2 = np.split(X, [X.shape[axis] // 2], axis=axis)
          Y = x1 * (1.0 / (1.0 + np.exp(-x2)))
          return [Y]
  
      op = core.CreateOperator("Glu", ["X"], ["Y"], dim=axis)
      self.assertReferenceChecks(gc, op, [X], glu_ref)
  
file_path: pytorch/caffe2/python/operator_test/glu_op_test.py
imports: from caffe2.python import core
  import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
  from hypothesis import given, settings
  import hypothesis.strategies
  import numpy
  import unittest
label_desc: Use image node_id 1 for calling the TestGlu obj's underlying member method code with example usage: obj.test_glu_old(X_axis, gc, dc) and returns: list