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: Create a pytorch tensor from the serialized outputs of .compress
docstr_tok: ["Create","a","pytorch","tensor","from","the","serialized","outputs","of",".compress"]
code: def extract(
      self, serialized_tensor: runtime_pb2.Tensor
  ) -> torch.Tensor:
      """Create a pytorch tensor from the serialized outputs of .compress"""
      ...
  
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 2 for calling the CompressionBase obj's underlying member method code with example usage: obj.extract(serialized_tensor) without return types