docs: def _create_snapshot(logger, snapshot_name, vm, save_vm_memory_to_snapshot):
          """
          :type save_vm_memory_to_snapshot: bool
          """
          logger.info("Create virtual machine snapshot")
          dump_memory = save_vm_memory_to_snapshot
          quiesce = True
          task = vm.CreateSnapshot(snapshot_name, 'Created by CloudShell vCenterShell', dump_memory, quiesce)
          return task