code: def create_ssh_sftp_client(
      host_ip, port, username, password, ssh_key_path, passphrase
  ):
      """create ssh client"""
      try:
          paramiko = check_environment()
          conn = paramiko.Transport(host_ip, port)
          if ssh_key_path is not None:
              ssh_key = paramiko.RSAKey.from_private_key_file(
                  ssh_key_path, password=passphrase
              )
              conn.connect(username=username, pkey=ssh_key)
          else:
              conn.connect(username=username, password=password)
          sftp = paramiko.SFTPClient.from_transport(conn)
          return sftp
      except Exception as exception:
          print_error("Create ssh client error %s\n" % exception)
  
imports: import os
  from .common_utils import print_error
  from .command_utils import install_package_command
label_desc: Use image node_id 3 for calling a global function with example usage: create_ssh_sftp_client(host_ip, port, username, password, ssh_key_path, passphrase) and returns: sftp