def METHOD_NAME(self, *args, **options):
    """Command entry point."""
    exts_pool.load_all()
    for filename in options["files"]:
        try:
            with transaction.atomic():
                self._import(filename, options)
        except CommandError as exc:
            raise exc
        except UnicodeDecodeError:
            self.stdout.write(self.style.NOTICE(
                _("CSV file is not encoded in UTF-8, attempting to guess "
                  "encoding")
            ))
            detector = UniversalDetector()
            with io.open(filename, "rb") as fp:
                for line in fp:
                    detector.feed(line)
                    if detector.done:
                        break
                detector.close()
            self.stdout.write(self.style.NOTICE(
                _("Reading CSV file using %(encoding)s encoding") %
                detector.result
            ))
            try:
                with transaction.atomic():
                    self._import(
                        filename, options,
                        encoding=detector.result["encoding"]
                    )
            except UnicodeDecodeError as exc:
                raise CommandError(
                    _("Unable to decode CSV file using %(encoding)s "
                      "encoding") % detector.result
                ) from exc