code: def main(smoke_test: bool = False):
      ray.init(address="auto")
  
      num_samples = 100 if not smoke_test else 20
      results_per_second = 0.01
      trial_length_s = 300
  
      max_runtime = 500
  
      success = timed_tune_run(
          name="result network overhead",
          num_samples=num_samples,
          results_per_second=results_per_second,
          trial_length_s=trial_length_s,
          max_runtime=max_runtime,
          # One trial per worker node, none get scheduled on the head node.
          # See the compute config.
          resources_per_trial={"cpu": 2},
      )
  
      if not success:
          raise RuntimeError(
              f"Test did not finish in within the max_runtime ({max_runtime} s). "
              "See above for details."
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: main(smoke_test) without return types