code: def __call__(
      self, n: int, should_error: bool = False
  ) -> Generator[int, None, None]:
      if should_error:
          raise RuntimeError("oopsies")
  
      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 the SyncStreamer obj's underlying member method code with example usage: obj.__call__(n, should_error) without return types