import re
import socket


def get_hostname() -> str:
  """
  Get the stripped down version of the host name to be used for
  sudmodel_dir, ckpt names, scoping.
  Names had '.' and '-' in them which I want for scoping/file suffix.
  keeps only letters, numbers, _.
  """
  return re.sub('\W+', '', socket.gethostname())