code: def test_call_gen_without_stream_flag(
      self, serve_instance, deployment: Deployment
  ):
      h = serve.run(deployment.bind())
  
      with pytest.raises(
          TypeError,
          match=(
              "Method '__call__' returned a generator. You must use "
              "`handle.options\(stream=True\)` to call generators on a deployment."
          ),
      ):
          h.remote(5).result()
  
      with pytest.raises(
          TypeError,
          match=(
              "Method 'call_inner_generator' returned a generator. You must use "
              "`handle.options\(stream=True\)` to call generators on a deployment."
          ),
      ):
          h.call_inner_generator.remote(5).result()
  
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 2 for calling the TestAppHandleStreaming obj's underlying member method code with example usage: obj.test_call_gen_without_stream_flag(serve_instance, deployment) without return types