code: def test_elementwise_sum(
      self, size, input_channels, batch_size, inputs, inplace, gc, dc
  ):
      op = core.CreateOperator(
          "Sum",
          ["X_{}".format(i) for i in range(inputs)],
          ["X_0" if inplace else "Y"],
      )
      Xs = [
          np.random.rand(batch_size, input_channels, size, size).astype(
              np.float32
          )
          for _ in range(inputs)
      ]
      self.assertDeviceChecks(dc, op, Xs, [0])
  
file_path: pytorch/caffe2/python/ideep/elementwise_sum_op_test.py
imports: import unittest
  import hypothesis.strategies
  from hypothesis import given
  import numpy
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace
  import caffe2.python.hypothesis_test_util
  import caffe2.python.ideep_test_util
label_desc: Use image node_id 1 for calling the ElementwiseSumTest obj's underlying member method code with example usage: obj.test_elementwise_sum(size, input_channels, batch_size, inputs, inplace, gc, dc) without return types