code: def _length_split_op_ref(self, input_lengths, n_split_array):
      output = []
      n_split = n_split_array[0]
      for x in input_lengths:
          mod = x % n_split
          val = x // n_split + 1
          for _ in range(n_split):
              if mod > 0:
                  output.append(val)
                  mod -= 1
              else:
                  output.append(val - 1)
      return [np.array(output).astype(np.int32)]
  
file_path: pytorch/caffe2/python/operator_test/length_split_op_test.py
imports: from caffe2.python import core
  from hypothesis import given, settings
  import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
  import hypothesis.strategies
  import numpy
label_desc: Use image node_id 1 for calling the TestLengthSplitOperator obj's underlying member method code with example usage: obj._length_split_op_ref(input_lengths, n_split_array) and returns: list