code: def test_model_options_init(
      framework: types.ModuleType, test_model: FrameworkTestModel
  ):
      if not hasattr(framework, "ModelOptions"):
          pytest.skip(
              f"No ModelOptions for framework '{framework.__name__}'"
          )
  
      ModelOptions = framework.ModelOptions
  
      for configuration in test_model.configurations:
          from_kwargs = ModelOptions(**configuration.load_kwargs)
          from_with_options = from_kwargs.with_options(
              **configuration.load_kwargs
          )
          assert from_kwargs == from_with_options
          assert from_kwargs.to_dict() == from_with_options.to_dict()
  
          from_dict = ModelOptions(**from_kwargs.to_dict())
          assert from_dict == from_kwargs
  
imports: from __future__ import annotations
  import logging
  import os
  import types
  import typing
  from typing import TYPE_CHECKING
  import pytest
  import bentoml
  from bentoml._internal.models.model import ModelContext
  from bentoml._internal.models.model import ModelSignature
  from bentoml._internal.runner.runner import Runner
  from bentoml._internal.runner.runner_handle.local import LocalRunnerRef
  from bentoml._internal.runner.strategy import DefaultStrategy
  from bentoml.exceptions import NotFound
  from .models import FrameworkTestModel
label_desc: Use image node_id 4 for calling a global function with example usage: test_model_options_init(framework, test_model) without return types