def METHOD_NAME(self, *args, **options):
    url = settings.CONFIG.general.public_url
    auth_key = settings.CONFIG.general.api_key
    delete_after_upload = options.get("delete_after_upload", False)
    delete_if_exists = options.get("delete_if_exists", False)
    path = options.get("path")
    library = options.get("library", None)
    allowed_extensions = options.get("allowed_extensions")
    importer = Importer(url, auth_key, delete_after_upload, delete_if_exists)
    importer.import_dir(Path(path).resolve(), library, allowed_extensions)