code: def reboot(*args):
      """Reboot python in the Lore virtualenv"""
      args = list(sys.argv) + list(args)
      if args[0] == "python" or not args[0]:
          args[0] = BIN_PYTHON
      elif os.path.basename(sys.argv[0]) in ["lore", "lore.exe"]:
          args[0] = BIN_LORE
      try:
          os.execv(args[0], args)
      except Exception as e:
          if (
              args[0] == BIN_LORE
              and args[1] == "console"
              and JUPYTER_KERNEL_PATH
          ):
              print(
                  ansi.error()
                  + " Your jupyter kernel may be corrupt. Please remove it so lore can reinstall:\n $ rm "
                  + JUPYTER_KERNEL_PATH
              )
          raise e
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  import glob
  import locale
  import os
  import re
  import socket
  import subprocess
  import sys
  import platform
  from io import open
  import pkg_resources
  from lore import ansi
label_desc: Use image node_id 6 for calling a global function with example usage: reboot() without return types