class_docstr: An AutoDist Cluster Based on SSH.
docstr: Get a Paramiko SFTP Client to the given node.
  
  Args:
      hostname (str): The node to SFTP to.
  
  Returns:
      Yields a Paramiko SFTPClient.
docstr_tok: ["Get","a","Paramiko","SFTP","Client","to","the","given","node",".","Args",":","hostname","(","str",")",":","The","node","to","SFTP","to",".","Returns",":","Yields","a","Paramiko","SFTPClient","."]
code: def _get_sftp_client(self, hostname):
      """
      Get a Paramiko SFTP Client to the given node.
  
      Args:
          hostname (str): The node to SFTP to.
  
      Returns:
          Yields a Paramiko SFTPClient.
      """
      ssh_config = self._ssh_conf[hostname]
      t = paramiko.Transport((hostname, ssh_config.port))
      t.connect(username=ssh_config.username, pkey=ssh_config.pkey)
      sftp = paramiko.SFTPClient.from_transport(t)
      yield sftp
      sftp.close()
      t.close()
  
imports: import atexit
  import contextlib
  import json
  import os
  import signal
  import subprocess
  import sys
  import warnings
  from abc import ABCMeta, abstractmethod
  import paramiko
  from autodist.const import DEFAULT_PORT_RANGE, DEFAULT_WORKING_DIR, ENV
  from autodist.resource_spec import ResourceSpec
  from autodist.utils import logging
label_desc: Use image node_id 3 for calling the SSHCluster obj's underlying member method code with example usage: obj._get_sftp_client(hostname) without return types