code: def decode(vol, filename, content):
    
    bbox = Bbox.from_filename(filename)
    content_len = len(content) if content is not None else 0
  
    if not content:
      if vol.fill_missing:
        content = ''
      else:
        raise EmptyVolumeException(filename)
  
    shape = list(bbox.size3()) + [ vol.num_channels ]
  
    try:
      return chunks.decode(
        content, 
        encoding=vol.encoding, 
        shape=shape, 
        dtype=vol.dtype, 
        block_size=vol.compressed_segmentation_block_size,
      )
    except Exception as error:
      print(red('File Read Error: {} bytes, {}, {}, errors: {}'.format(
          content_len, bbox, filename, error)))
      raise
docs: Decode content according to settings in a cloudvolume instance.