parameters: (si, vm)
return_statement: return False
docstring: creates, then removes a snapshot,
      also named stun-unstun cycle
docstring_summary: creates, then removes a snapshot,
      also named stun-unstun cycle
docstring_tokens: creates then removes a snapshot also named stun - unstun cycle
function: def create_and_remove_snapshot(si, vm):
      """
      creates, then removes a snapshot,
      also named stun-unstun cycle
      """
      print(
          "INFO: VM %s trying to create and remove a snapshot to activate CBT" % (vm.name)
      )
      snapshot_result = create_vm_snapshot(si, vm)
      if snapshot_result:
          if remove_vm_snapshot(si, snapshot_result):
              print("INFO: VM %s successfully created and removed snapshot" % (vm.name))
              return True
  
      return False
function_tokens: def create_and_remove_snapshot ( si , vm ) : print ( "INFO: VM %s trying to create and remove a snapshot to activate CBT" % ( vm . name ) ) snapshot_result = create_vm_snapshot ( si , vm ) if snapshot_result : if remove_vm_snapshot ( si , snapshot_result ) : print ( "INFO: VM %s successfully created and removed snapshot" % ( vm . name ) ) return True return False