code: def _install_hiero(use_threaded_wrapper):
      
      import hiero
      import nuke
  
      if "--hiero" not in nuke.rawArgs:
          raise ImportError
  
      def threaded_wrapper(func, *args, **kwargs):
          return hiero.core.executeInMainThreadWithResult(
              func, args, kwargs)
  
      _common_setup("Hiero", threaded_wrapper, use_threaded_wrapper)
docs: Helper function to The Foundry Hiero support