code: def test_only_config_dicts():
      mii_config = _parse_kwargs_to_mii_config(
          mii_config={"enable_restful_api": True},
          model_config={
              "model_name_or_path": "test",
              "tensor_parallel": 2,
          },
      )
      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
  
      mii_config = _parse_kwargs_to_mii_config(
          mii_config={
              "enable_restful_api": True,
              "model_config": {
                  "model_name_or_path": "test",
                  "tensor_parallel": 2,
              },
          }
      )
      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(
          model_config={
              "model_name_or_path": "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 3 for calling a global function with example usage: test_only_config_dicts() without return types