<s> from pysphere import VIServer <EOL> server = VIServer ( ) <EOL> server . connect ( "<STR_LIT>" , "<STR_LIT:username>" , "<STR_LIT>" ) <EOL> vm = server . get_vm_by_path ( "<STR_LIT>" ) <EOL> vm . wait_for_tools ( ) <EOL> vm . login_in_guest ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> vm . get_screenshot ( "<STR_LIT>" , overwrite = True ) <EOL> server . disconnect ( ) </s>
