def __init__(cls, name, bases, dct):
    super(AutoRegisterDiskSpecMeta, cls).__init__(name, bases, dct)
    if cls.CLOUD in _DISK_SPEC_REGISTRY:
      raise Exception('BaseDiskSpec subclasses must have a CLOUD attribute.')
    else:
      _DISK_SPEC_REGISTRY[cls.CLOUD] = cls
    super(AutoRegisterDiskSpecMeta, cls).__init__(name, bases, dct)
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/disk.py/AutoRegisterDiskSpecMeta.__init__/original