code: def run_method(
      self,
      __bentoml_method: RunnerMethod[t.Any, P, R],
      *args: P.args,
      **kwargs: P.kwargs,
  ) -> R:
      if __bentoml_method.config.batchable:
          inp_batch_dim = __bentoml_method.config.batch_dim[0]
  
          payload_params = Params[Payload](*args, **kwargs).map(
              lambda arg: AutoContainer.to_payload(
                  arg, batch_dim=inp_batch_dim
              )
          )
  
          if not payload_params.map(lambda i: i.batch_size).all_equal():
              raise ValueError(
                  "All batchable arguments must have the same batch size."
              )
  
      return getattr(self._runnable, __bentoml_method.name)(
          *args, **kwargs
      )
  
file_path: BentoML/src/bentoml/_internal/runner/runner_handle/local.py
imports: from __future__ import annotations
  import functools
  import inspect
  import typing
  from typing import TYPE_CHECKING
  from typing import AsyncGenerator
  import anyio
  from ..container import AutoContainer
  from ..container import Payload
  from ..utils import Params
  from ..utils import iterate_in_threadpool
  from .None import RunnerHandle
label_desc: Use image node_id 2 for calling the LocalRunnerRef obj's underlying member method code with example usage: obj.run_method(__bentoml_method) and returns: getattr