def METHOD_NAME(self, local_file, artifact_path=None):
    artifact_dir = posixpath.join(self.path, artifact_path) if artifact_path else self.path
    with self.pool.get_sfp_connection() as sftp:
        sftp.makedirs(artifact_dir)
        sftp.put(local_file, posixpath.join(artifact_dir, os.path.basename(local_file)))