def METHOD_NAME(
        connection = None,
        emulator = None,
        sidecar_services = None,
        tpm = False):
    runtime = runtime_t(
        connection = connection or _new_vm_connection(),
        emulator = emulator or _new_vm_emulator(tpm = tpm),
        sidecar_services = sidecar_services or [],
        tpm = tpm,
    )
    if tpm and not runtime.emulator.tpm_binary:
        fail("tpm=True, but emulator is missing tpm_binary")
    return runtime