code: def estimate_compression_ratio(self, info: CompressionInfo) -> float:
      return self.choose_compression(info).estimate_compression_ratio(
          info
      )
  
imports: from abc import ABC, abstractmethod
  from typing import Mapping, Sequence, Union
  import torch
  from hivemind.compression.base import CompressionBase, CompressionInfo, Key, NoCompression, TensorRole
  from hivemind.compression.serialization import deserialize_torch_tensor
  from hivemind.proto import runtime_pb2
label_desc: Use image node_id 2 for calling the AdaptiveCompressionBase obj's underlying member method code with example usage: obj.estimate_compression_ratio(info) and returns: self