Sure thing, please find the code below:

```python
import logging
import os
import shutil
import sys

from collections import defaultdict
from pathlib import Path

def sort_files_by_extension(input_path: str, output_path: str) -> None:
    """
    Sort files into separate folders based on their extension.
    :param input_path: Path to the input folder.
    :param output_path: Path to the output folder.
    :return: None.
    """
    logging.basicConfig(level=logging.INFO)

    input_directory = Path(input_path)
    if not input_directory.is_dir:
        raise NotADirectoryError(f'{input_path} is not a directory.')

    output_directory = Path(output_path)
    if not output_directory.is_dir:
        logging.info(f'{output_path} is not a directory. Creating it now.')
        os.makedirs(output_directory)

    file_list = [f for f in input_directory.glob('**/*')]
    logging.info(f"Found {len(file_list)} files")

    extension_dict = defaultdict(list)

    for file in file_list:
        if file.is_file():
            extension_dict[file.suffix[1:]].append(file.as_posix())

    logging.info(f"Found {len(extension_dict)} extensions")

    for key, value in extension_dict.items():
        output_directory.joinpath(key).mkdir(exist_ok=True)
        logging.info(f"Moving {len(value)} files to {key} folder")
        for file in value:
            logging.info(f"Moving {file} to {key} folder")
            shutil.move(file, output_directory.joinpath(key))

if __name__ == "__main__":    
    sort_files_by_extension(sys.argv[1], sys.argv[2])
    print("Done!")
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence