def METHOD_NAME(self, name, size, nodes=None, array=None):
    if array is None:
        array = self.array
    if nodes:
        mappings = self.get_mappings(nodes)
        if not mappings:
            raise ex.Error("refuse to create a disk with no mappings")
    else:
        mappings = None
    lock_id = None
    result = array.create_disk(name=name, size=size,
                               storagepool=self.storagepool,
                               compression=self.compression,
                               hypermetrodomain=self.hypermetrodomain,
                               dedup=self.dedup,
                               mappings=mappings)
    return result