class_docstr: Compressor for the zstd package.
class_docstr_tok: ["Compressor","for","the","zstd","package","."]
code: def compress(self, data: bytes) -> bytes:
      return zstd.compress(data, self.level)
  
file_path: pytorch-lightning/src/lightning/data/streaming/compression.py
imports: from abc import ABC, abstractclassmethod, abstractmethod
  from typing import Dict, TypeVar
  from lightning_utilities.core.imports import RequirementCache, requires
label_desc: Use image node_id 3 for calling the ZSTDCompressor obj's underlying member method code with example usage: obj.compress(data) and returns: zstd