def METHOD_NAME(onnx_file: str,
                   engines: List[pplnn.Engine]) -> pplnn.Runtime:
    """Create runtime object for pplnn.
    Args:
        onnx_file (str): path to onnx model
        engines (List[pplnn.Engine]): engines used to create the runtime
            object
    Returns:
        pplnn.Runtime: created runtime object
    """
    runtime_builder = pplnn.onnx.RuntimeBuilderFactory.Create()
    assert runtime_builder is not None, 'Failed to create '\
        'onnx.RuntimeBuilder.'
    status = runtime_builder.LoadModelFromFile(onnx_file)
    assert status == pplcommon.RC_SUCCESS, 'Failed to load ONNX model.'
    resources = pplnn.onnx.RuntimeBuilderResources()
    resources.engines = engines
    status = runtime_builder.SetResources(resources)
    assert status == pplcommon.RC_SUCCESS, 'runtime_builder.SetResources() ' \
        'Failed.'
    status = runtime_builder.Preprocess()
    assert status == pplcommon.RC_SUCCESS, 'runtime_builder.Preprocess() ' \
        'Failed.'
    runtime = runtime_builder.CreateRuntime()
    assert runtime is not None, 'Failed to create onnx.Runtime'
    return runtime