def print_vm_info(vm):
summary = vm.summary<EOL>print('<STR_LIT>', summary.config.name)<EOL>print('<STR_LIT>', summary.config.vmPathName)<EOL>print('<STR_LIT>', summary.config.guestFullName)<EOL>annotation = summary.config.annotation<EOL>if annotation is not None and annotation != '<STR_LIT>':<EOL><INDENT>print('<STR_LIT>', annotation)<EOL><DEDENT>print('<STR_LIT>', summary.runtime.powerState)<EOL>if summary.guest is not None:<EOL><INDENT>ip = summary.guest.ipAddress<EOL>if ip is not None and ip != '<STR_LIT>':<EOL><INDENT>print('<STR_LIT>', ip)<EOL><DEDENT><DEDENT>if summary.runtime.question is not None:<EOL><INDENT>print('<STR_LIT>', summary.runtime.question.text)<EOL><DEDENT>print('<STR_LIT>')<EOL>
Print information for a particular virtual machine