class_docstr: The ServableModuleValidator validates to validate a model correctly implement the ServableModule API.
  
  .. warning::  This is an :ref:`experimental <versioning:Experimental API>` feature.
  
  Arguments:
      optimization: The format in which the model should be tested while being served.
      server: The library used to evaluate the model serving. The default is FastAPI.
      host: The host address associated with the server.
      port: The port associated with the server.
      timeout: Timeout period in seconds, that the process should wait for the server to start.
      exit_on_failure: Whether to exit the process on failure.
code: def state_dict(self) -> Dict[str, Any]:
      return {
          "successful": self.successful,
          "optimization": self.optimization,
          "server": self.server,
      }
  
imports: import contextlib
  import logging
  import time
  from multiprocessing import Process
  from typing import Any, Dict, Literal, Optional
  import requests
  import torch
  from lightning_utilities.core.imports import RequirementCache
  from typing_extensions import override
  import lightning.pytorch
  from lightning.pytorch.callbacks import Callback
  from lightning.pytorch.serve.servable_module import ServableModule
  from lightning.pytorch.strategies import DeepSpeedStrategy, FSDPStrategy
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from lightning.pytorch.utilities.model_helpers import is_overridden
  from lightning.pytorch.utilities.rank_zero import rank_zero_only
label_desc: Use image node_id 4 for calling the ServableModuleValidator obj's underlying member method code with example usage: obj.state_dict() and returns: dict