code: def test_servable_module_validator():
      model = ServableBoringModel()
      callback = ServableModuleValidator()
      callback.on_train_start(Trainer(accelerator="cpu"), model)
  
file_path: pytorch-lightning/tests/tests_pytorch/serve/test_servable_module_validator.py
imports: from typing import Dict
  import pytest
  import torch
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.serve.servable_module_validator import ServableModule, ServableModuleValidator
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: test_servable_module_validator() without return types