class_docstr: A base class that applies compression algorithm to a pytorch tensor
class_docstr_tok: ["A","base","class","that","applies","compression","algorithm","to","a","pytorch","tensor"]
docstr: Estimate the compression ratio without doing the actual compression; lower ratio = better compression
docstr_tok: ["Estimate","the","compression","ratio","without","doing","the","actual","compression",";","lower","ratio","=","better","compression"]
code: def estimate_compression_ratio(self, info: CompressionInfo) -> float:
      """Estimate the compression ratio without doing the actual compression; lower ratio = better compression"""
      ...
  
imports: import dataclasses
  import os
  import warnings
  from abc import ABC, abstractmethod
  from enum import Enum, auto
  from typing import Any, Optional
  import numpy
  import torch
  from hivemind.proto import runtime_pb2
  from hivemind.utils.tensor_descr import TensorDescriptor
label_desc: Use image node_id 3 for calling the CompressionBase obj's underlying member method code with example usage: obj.estimate_compression_ratio(info) without return types