@staticmethod
    def get_object(mechanism):
        if mechanism == 'zlib':
            return ZlibCompression()
        elif mechanism == "bz2":
            return Bz2Compression()
        else:
            raise ValueError("Unsupported compression mechanism: %s" % mechanism)
dataset/ETHPy150Open CybOXProject/python-cybox/cybox/objects/artifact_object.py/Compression.get_object/original