You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nexus_spec.rb
    path of file: ./repos/ubicloud/spec/prog/vm
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative "../../model/spec_helper"
require "netaddr"

RSpec.describe Prog::Vm::Nexus do
  subject(:nx) {
    described_class.new(st).tap {
      _1.instance_variable_set(:@vm, vm)
    }
  }

  let(:st) { Strand.new }
  let(:vm) {
    kek = StorageKeyEncryptionKey.new(
      algorithm: "aes-256-gcm", key: "key",
      init_vector: "iv", auth_data: "somedata"
    ) { _1.id = "04a3fe32-4cf0-48f7-909e-e35822864413" }
    si = SpdkInstallation.new(version: "v1") { _1.id = SpdkInstallation.generate_uuid }
    disk_1 = VmStorageVolume.new(boot: true, size_gib: 20, disk_index: 0)
    disk_1.spdk_installation = si
    disk_1.key_encryption_key_1 = kek
    disk_2 = VmStorageVolume.new(boot: false, size_gib: 15, disk_i
    
    def new_host(**args)
      args = {allocation_state: "accepting",
              location: "somewhere-normal",
              total_sockets: 1,
              total_cores: 80,
              total_cpus: 80,
              total_mem_gib: 640,
              total_hugepages_1g: 640 - 8,
              total_storage_gib: 500,
              available_storage_gib: 200,
              arch: "x64"}.merge(args)
      sa = Sshable.create_with_id(host: "127.0.0.#{@host_index}")
      @host_index += 1
      host = VmHost.create(**args) { _1.id = sa.id }
      StorageDevice.create_with_id(
        name: "DEFAULT",
        available_storage_gib: args[:available_storage_gib],
        total_storage_gib: args[:total_storage_gib],
        vm_host_id: host.id
      )
      SpdkInstallation.create(
        version: "v29.01",
        allocation_weight: 100,
        vm_host_id: host.id
      ) { _1.id = SpdkInstallation.generate_uuid }
      host
    end