docs: def get_instance_by_type(dst, disk, do_compress, *args, **kwargs):
          """
          Args:
              dst (str): The path of the new exported disk.
                  can contain env variables.
              disk (dict): Disk attributes
                  (of the disk that should be exported) as
                  found in workdir/current/virt/VM-NAME
              do_compress(bool): If true, apply compression to the exported
                  disk.
          Returns
              An instance of a subclass of DiskExportManager which
              matches the disk type.
          """
          disk_type = disk['type']
          cls = HANDLERS.get(disk_type)
          if not cls:
              raise utils.LagoUserException(
                  'Export is not supported for disk type {}'.format(disk_type)
              )
          return cls(dst, disk_type, disk, do_compress, *args, **kwargs)