code: def get_vm_failfast(self, name, verbose=False, vm_term='VM', path=""):
          
          if verbose:
              print("Finding VirtualMachine named %s..." % name)
          if path:
              vm = self.get_vm(name, path=path)
          else:
              vm = self.get_vm(name)
          if vm is None:
              print("Error: %s '%s' does not exist" % (vm_term, name))
              sys.exit(1)
  
          if verbose:
              print("Found VirtualMachine: %s Name: %s" % (vm, vm.name))
  
          return vm
docs: Get a VirtualMachine object
          fail fast if the object isn't a valid reference