code: def compress(scheme, data):
      hdr = data[:4] + struct.pack(
          ">L", (scheme << 27) + (len(data) & 0x07FFFFFF)
      )
      if scheme == 0:
          return data
      elif scheme == 1 and lz4:
          res = lz4.block.compress(
              data,
              mode="high_compression",
              compression=16,
              store_size=False,
          )
          return hdr + res
      else:
          warnings.warn(
              "Table failed to compress by unsupported compression scheme"
          )
      return data
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/grUtils.py
imports: import struct, warnings
label_desc: Use image node_id 2 for calling a global function with example usage: compress(scheme, data) and returns: data, data, unknown