class_docstr: Apply compression strategy 1 if tensor has more than :threshold: elements and strategy 2 otherwise
code: def __init__(
      self,
      threshold: int,
      less: CompressionBase,
      greater_equal: CompressionBase,
  ):
      self.threshold, self.less, self.greater_equal = (
          threshold,
          less,
          greater_equal,
      )
  
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 1 to create a new SizeAdaptiveCompression object from inherited base classes: AdaptiveCompressionBase with example: obj = SizeAdaptiveCompression(threshold, less, greater_equal)