def METHOD_NAME(
    meth: t.Callable[t.Concatenate[T, P], R]
) -> RunnableMethod[T, P, R]:
    return RunnableMethod(
        meth,
        RunnableMethodConfig(
            is_stream=inspect.isasyncgenfunction(meth)
            or inspect.isgeneratorfunction(meth),
            batchable=batchable,
            batch_dim=(batch_dim, batch_dim)
            if isinstance(batch_dim, int)
            else batch_dim,
            input_spec=input_spec,
            output_spec=output_spec,
        ),
    )