code: def get_address(address):
      if address:
          return address
  
      ssh_connection = os.getenv("SSH_CONNECTION")
      if ssh_connection:
          try:
              (
                  client_ip,
                  client_port,
                  host_ip,
                  host_port,
              ) = ssh_connection.split()
              if len(host_ip.split(".")) == 4:
                  return "%s:%i" % (host_ip, DEFAULT_PORT)
          except ValueError:
              pass
  
      return "%s:%i" % (
          socket.gethostbyname(socket.gethostname()),
          DEFAULT_PORT,
      )
  
file_path: moolib/examples/sbatch_experiment.py
imports: import argparse
  import ctypes
  import getpass
  import os
  import socket
  import sys
  import coolname
  import moolib
label_desc: Use image node_id 1 for calling a global function with example usage: get_address(address) and returns: unknown, address, unknown