def METHOD_NAME(cg, graphlayer: int, source_mip: int) -> np.ndarray:
    """
    Calculate the dimensions of a segmentation block at `source_mip` that covers
    the same region as a ChunkedGraph chunk at layer `graphlayer`.
    """
    info = get_segmentation_info(cg)
    # Segmentation is not always uniformly downsampled in all directions.
    scale_0 = info["scales"][0]
    scale_mip = info["scales"][source_mip]
    distortion = np.floor_divide(scale_mip["resolution"], scale_0["resolution"])
    graphlayer_chunksize = np.array(
        cg.meta.graph_config.CHUNK_SIZE
    ) * cg.meta.graph_config.FANOUT ** np.max([0, graphlayer - 2])
    return np.floor_divide(
        graphlayer_chunksize, distortion, dtype=int, casting="unsafe"
    )