code: def sync_gen_function(n: int):
      for i in range(n):
          yield i
  
imports: import sys
  from typing import AsyncGenerator, Generator
  import pytest
  from ray import serve
  from ray.serve import Deployment
  from ray.serve.handle import RayServeHandle
label_desc: Use image node_id 1 for calling a global function with example usage: sync_gen_function(n) without return types