code: def reset(vm_):
      '''
      Reset a VM by emulating the reset button on a physical machine
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.reset <vm name>
      '''
      with _get_xapi_session() as xapi:
          vm_uuid = _get_label_uuid(xapi, 'VM', vm_)
          if vm_uuid is False:
              return False
          try:
              xapi.VM.hard_reboot(vm_uuid)
              return True
          except Exception:
              return Falsf reset(vm_):
      '''
      Reset a VM by emulating the reset button on a physical machine
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.reset <vm name>
      '''
      with _get_xapi_session() as xapi:
          vm_uuid = _get_label_uuid(xapi, 'VM', vm_)
          if vm_uuid is False:
              return False
          try:
              xapi.VM.hard_reboot(vm_uuid)
              return True
          except Exception:
              return False
docs: Reset a VM by emulating the reset button on a physical machine
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.reset <vm name>