code: def get_runnable(bento_model: Model):
      """
      Private API: use :obj:`~bentoml.Model.to_runnable` instead.
      """
      from .common.pytorch import PytorchModelRunnable
      from .common.pytorch import make_pytorch_runnable_method
      from .common.pytorch import partial_class
  
      for method_name, options in bento_model.info.signatures.items():
          PytorchModelRunnable.add_method(
              make_pytorch_runnable_method(method_name),
              name=method_name,
              batchable=options.batchable,
              batch_dim=options.batch_dim,
              input_spec=options.input_spec,
              output_spec=options.output_spec,
          )
      return partial_class(
          PytorchModelRunnable,
          bento_model=bento_model,
          loader=load_model,
      )
  
file_path: BentoML/src/bentoml/_internal/frameworks/pytorch_lightning.py
imports: from __future__ import annotations
  import typing
  from types import ModuleType
  from typing import TYPE_CHECKING
  import bentoml
  from bentoml import Tag
  from ...exceptions import MissingDependencyException
  from ...exceptions import NotFound
  from ..models.model import Model
  from .common.pytorch import torch
  from .torchscript import MODEL_FILENAME
  from .torchscript import save_model
label_desc: Use image node_id 4 for calling a global function with example usage: get_runnable(bento_model) and returns: partial_class