code: def _install_nuke(use_threaded_wrapper):
      
      import nuke
  
      not_nuke_launch = (
          "--hiero" in nuke.rawArgs or
          "--studio" in nuke.rawArgs or
          "--nukeassist" in nuke.rawArgs
      )
      if not_nuke_launch:
          raise ImportError
  
      def threaded_wrapper(func, *args, **kwargs):
          return nuke.executeInMainThreadWithResult(
              func, args, kwargs)
  
      _common_setup("Nuke", threaded_wrapper, use_threaded_wrapper)
docs: Helper function to The Foundry Nuke support