code: def test_only_kwargs():
      mii_config = _parse_kwargs_to_mii_config(
          "test", tensor_parallel=2, enable_restful_api=True
      )
      assert mii_config.model_config.model_name_or_path == "test"
      assert mii_config.model_config.tensor_parallel == 2
      assert mii_config.enable_restful_api is True
  
      model_config, _ = _parse_kwargs_to_model_config(
          "test", tensor_parallel=2
      )
      assert model_config.model_name_or_path == "test"
      assert model_config.tensor_parallel == 2
  
imports: import pytest
  from mii.api import _parse_kwargs_to_model_config, _parse_kwargs_to_mii_config
  from mii.errors import UnknownArgument
label_desc: Use image node_id 2 for calling a global function with example usage: test_only_kwargs() without return types