code: def test_big_driver_has_big_memory():
      backend = hl.current_backend()
      assert isinstance(backend, ServiceBackend)
      # A fresh backend is used for every test so this should only affect this method
      backend.driver_cores = 8
      backend.driver_memory = "highmem"
      t = hl.utils.range_table(100_000_000, 50)
      # The pytest (client-side) worker dies if we try to realize all 100M rows in memory.
      # Instead, we realize the 100M rows in memory on the driver and then take just the first 10M
      # rows back to the client.
      hl.eval(
          t.aggregate(hl.agg.collect(t.idx), _localize=False)[
              :10_000_000
          ]
      )
  
file_path: hail/hail/python/test/hail/backend/test_service_backend.py
imports: import os
  import hail
  from ..helpers import skip_unless_service_backend, test_timeout, qobtest
  from hail.backend.service_backend import ServiceBackend
label_desc: Use image node_id 2 for calling a global function with example usage: test_big_driver_has_big_memory() without return types