def __init__(cls, name, bases, dct):
    super(AutoRegisterVmSpecMeta, cls).__init__(name, bases, dct)
    if cls.CLOUD in _VM_SPEC_REGISTRY:
      raise Exception('BaseVmSpec subclasses must have a CLOUD attribute.')
    _VM_SPEC_REGISTRY[cls.CLOUD] = cls
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/virtual_machine.py/AutoRegisterVmSpecMeta.__init__/original