code: def _install_maya(use_threaded_wrapper):
      
      from maya import utils, cmds
  
      def threaded_wrapper(func, *args, **kwargs):
          return utils.executeInMainThreadWithResult(
              func, *args, **kwargs)
  
      sys.stdout.write("Setting up Pyblish QML in Maya\n")
  
      if cmds.about(version=True) == "2018":
          _remove_googleapiclient()
  
      _common_setup("Maya", threaded_wrapper, use_threaded_wrapper)
docs: Helper function to Autodesk Maya support