          for tool_name in sorted(os.listdir(tools_dir)):
              cli_file = os.path.join(tools_dir, tool_name, "cli.py")
              if os.path.exists(cli_file):
                  mod = ".".join(("tools", tool_name, "cli"))
                  mod_classes["{}Args".format(tool_name.title())] = import_module(mod)
          return mod_classes
  
      def sort_commands(self, category, classes):
          """ Format classes into command names and sort:
              Specific workflow order for faceswap.
 
</s> remove         mod_classes = dict()
 </s> add         mod_classes = {} </s> remove         logger.debug("Cache shape: %s", self._previewcache["images"].shape)
 </s> add         logger.debug("Cache shape: %s", cast(np.ndarray, self._previewcache["images"]).shape) </s> remove     def _place_previews(self, frame_dims):
 </s> add     def _place_previews(self, frame_dims: Tuple[int, int]) -> Image.Image: </s> remove         subopts = dict()
 </s> add         subopts = {}
                mod_classes[f"{tool_name.title()}Args"] = import_module(mod)
          for tool_name in sorted(os.listdir(tools_dir)):
              cli_file = os.path.join(tools_dir, tool_name, "cli.py")
              if os.path.exists(cli_file):
                  mod = ".".join(("tools", tool_name, "cli"))
                mod_classes[f"{tool_name.title()}Args"] = import_module(mod)
          return mod_classes
  
      def sort_commands(self, category, classes):
          """ Format classes into command names and sort:
              Specific workflow order for faceswap.
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/options.py