code: def block_until_ready(client, socket, env):
      """Block current thread until we receive the ready status
      :param client: the current connected client
      :type client: SSHClient
      :param socket: socket connection to machine where job is executed
      :param env: environment to set up on the remote machine
      """
      from time import sleep
      import paramiko as pm
  
      sleep_time_s = 0.1
      timeout_time_s = 5
      nop_linux_command = ":"
  
      while socket.channel.exit_status_ready() == False:
          client.exec_command(
              nop_linux_command, timeout=timeout_time_s, environment=env
          )
          logger.debug("Command executed successfully, now sleeping")
          sleep(sleep_time_s)
  
imports: from __future__ import print_function
  import sys
  import logging
  import os
  from os import path
  from six.moves import input
  from six.moves.configparser import ConfigParser
  import paramiko
  from paramiko import SFTPClient
  from .aup import BasicConfig, print_result
label_desc: Use image node_id 9 for calling a global function with example usage: block_until_ready(client, socket, env) without return types