code: def table_scan_sum_1k_partitions():
      ht = hl.utils.range_table(1000000, n_partitions=1000)
      ht = ht.annotate(x=hl.scan.sum(ht.idx))
      ht._force_count()
  
imports: from os import path
  from tempfile import TemporaryDirectory
  import hail
  from .resources import *
  from .utils import benchmark
label_desc: Use image node_id 56 for calling a global function with example usage: table_scan_sum_1k_partitions() without return types