def METHOD_NAME(self, tensor: deeplake.Tensor):
    meta = tensor.meta
    return {
        "name": tensor.key,
        "num_samples": len(tensor),
        "htype": tensor.htype,
        "dtype": str(tensor.dtype) if tensor.dtype else None,
        "compression_type": "sample_compression"
        if meta.sample_compression
        else ("chunk_compression" if meta.chunk_compression else None),
        "compression_format": meta.sample_compression or meta.chunk_compression,
        "info": dict(tensor.info),
    }