def METHOD_NAME(self, path=None):
    if not path:
        path = self.options.get("path")
    package_zip = self._get_package_zip(path)
    if package_zip is not None:
        self.logger.info("Payload size: {} bytes".format(len(package_zip)))
    else:
        self.logger.warning("Deployment package is empty; skipping deployment.")
        return
    return self.api_class(
        self,
        package_zip,
        purge_on_delete=False,
        check_only=self.check_only,
        test_level=self.test_level,
        run_tests=self.specified_tests,
    )