code: def test_agg_ndarray_sum_ones_1d():
      just_ones_1d = hl.utils.range_table(20).annotate(
          x=hl.nd.ones((7,))
      )
      assert np.array_equal(
          just_ones_1d.aggregate(hl.agg.ndarray_sum(just_ones_1d.x)),
          np.full((7,), 20),
      )
  
imports: import math
  import numpy
  import re
  from ..helpers import *
  import pytest
  from hail.utils.java import FatalError, HailUserError
label_desc: Use image node_id 46 for calling a global function with example usage: test_agg_ndarray_sum_ones_1d() without return types