def METHOD_NAME() -> None:
    """Setup access to the target specified on the command line."""
    args = parse_args()
    # Add the target IP and target name to /etc/hosts (or other hosts file)
    update_hosts_file(args.ip, args.name, Path(args.hosts).resolve())
    """
    Set up the ssh key and copy it do the target.
    Usually this script needs to be run with `sudo` so that the /etc/hosts file can
    be modified.  This results in, the key getting setup for the root user instead of
    the user that invoked the script with `sudo`.
    The --local-user/-l option is available to generate the key for a local user instead
    of root.  Some things to note are:
      1. This script switches to the local user with `su` to run the two commands for setting
         up the ssh key
      2. The --session-command option for su needs to be used instead of -c
         (at least for ssh-copy-id)
      3. The command needs to be quoted.
    """
    if args.local_user is None:
        cmd_prefix = ""
        cmd_suffix = ""
    else:
        cmd_prefix = f'su {args.local_user} --session-command "'
        cmd_suffix = '"'
    # Generate ssh keys
    ssh_cmd = f"{cmd_prefix}ssh-keygen{cmd_suffix}"
    os.system(ssh_cmd)
    # Copy ssh id to target
    ssh_cmd = f"{cmd_prefix}ssh-copy-id {args.target_user}@{args.name}{cmd_suffix}"
    print(ssh_cmd)
    os.system(ssh_cmd)