code: def read_host_info(host: str) -> Dict[str, Union[str, List[str]]]:
      """Read information of a remote host.
  
      Args:
          host: The host from which the info will be read.
      """
      import json
  
      from fabric import Connection
  
      from lazycluster import RuntimeTask
  
      task = RuntimeTask("get-host-info")
      task.run_command(get_pip_install_cmd())
      task.run_function(print_localhost_info)
      task.execute(Connection(host))
      runtime_info = json.loads(task.execution_log[2])
      runtime_info["host"] = host
      return runtime_info
  
imports: import os
  import platform
  import socket
  import subprocess
  import sys
  from typing import Dict, List, Union
  import lazycluster.settings
  from .utils import Environment
label_desc: Use image node_id 8 for calling a global function with example usage: read_host_info(host) and returns: runtime_info