  
  def sort_args(in_path, out_path, sortby="face", groupby="hist", method="rename"):
      """ Sort command """
      py_exe = sys.executable
      _sort_args = "%s tools.py sort -i %s -o %s -s %s -fp %s -g %s -k" % (
          py_exe, in_path, out_path, sortby, method, groupby
      )
      return _sort_args.split()
  
  
  def main():
      """ Main testing script """
 
</s> remove         conv_args += " %s" % args
 </s> add         conv_args += f" {args}" </s> remove     _extract_args = "%s faceswap.py extract -i %s -o %s -D %s -A %s" % (
        py_exe, in_path, out_path, detector, aligner
    )
 </s> add     _extract_args = (f"{py_exe} faceswap.py extract -i {in_path} -o {out_path} -D {detector} "
                     f"-A {aligner}") </s> remove     conv_args = "%s faceswap.py convert -i %s -o %s -m %s -w %s" % (
        py_exe, in_path, out_path, model_path, writer
    )
 </s> add     conv_args = (f"{py_exe} faceswap.py convert -i {in_path} -o {out_path} -m {model_path} "
                 f"-w {writer}") </s> remove         _extract_args += " %s" % args
 </s> add         _extract_args += f" {args}" </s> remove     args = "%s faceswap.py train -A %s -B %s -m %s -t %s -bs %i -it %s %s" % (
        py_exe, faces, faces, model_path, model, batchsize, iterations, extra_args
    )
 </s> add     args = (f"{py_exe} faceswap.py train -A {faces} -B {faces} -m {model_path} -t {model} "
            f"-bs {batchsize} -it {iterations} {extra_args}")
    _sort_args = (f"{py_exe} tools.py sort -i {in_path} -o {out_path} -s {sortby} -fp {method} "
                  f"-g {groupby} -k")
  
  def sort_args(in_path, out_path, sortby="face", groupby="hist", method="rename"):
      """ Sort command """
      py_exe = sys.executable
    _sort_args = (f"{py_exe} tools.py sort -i {in_path} -o {out_path} -s {sortby} -fp {method} "
                  f"-g {groupby} -k")
    _sort_args = (f"{py_exe} tools.py sort -i {in_path} -o {out_path} -s {sortby} -fp {method} "
                  f"-g {groupby} -k")
    _sort_args = (f"{py_exe} tools.py sort -i {in_path} -o {out_path} -s {sortby} -fp {method} "
                  f"-g {groupby} -k")
      return _sort_args.split()
  
  
  def main():
      """ Main testing script """
keep keep keep keep replace replace replace keep keep keep keep keep
 Fix AMD Tests + docs 
tests/simple_tests.py