code: def compress(file: BinaryIO, compress_type: str) -> BinaryIO:
      """
      Return a compressed file object.
  
      Parameters
      ----------
      file:
          file object.
      compress_type: str
         compression type.
  
      Returns
      -------
      compressed_file:
          compressed file object.
      """
      try:
          compress_ = _compressions[compress_type]
      except KeyError:  # pragma: no cover
          raise ValueError(
              f"Unknown compress type: {compress_type}, "
              f'available include: {", ".join(_compressions)}'
          )
  
      return compress_(file)
  
label_desc: Use image node_id 1 for calling a global function with example usage: compress(file, compress_type) and returns: compress_