code: def install(modal):
      
  
      if _state.get("installed"):
          sys.stdout.write("Already installed, uninstalling..\n")
          uninstall()
  
      use_threaded_wrapper = not modal
  
      install_callbacks()
      install_host(use_threaded_wrapper)
  
      _state["installed"] = True
docs: Perform first time install