code: def test_deploy_with_init_kwargs(serve_instance):
      @serve.deployment()
      class D:
          def __init__(self, **kwargs):
              self._kwargs = kwargs
  
          def get_kwargs(self, *args):
              return self._kwargs
  
      handle = serve.run(D.bind(a=1, b=2)).options(
          use_new_handle_api=True
      )
      assert handle.get_kwargs.remote().result() == {"a": 1, "b": 2}
  
imports: import os
  import sys
  import time
  from collections import defaultdict
  from typing import Callable
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.pydantic_compat import ValidationError
  from ray._private.test_utils import SignalActor
  from ray.serve._private.utils import get_random_string
  from ray.serve.exceptions import RayServeException
label_desc: Use image node_id 12 for calling a global function with example usage: test_deploy_with_init_kwargs(serve_instance) and returns: self