def METHOD_NAME(rprops, geo_data=None):
    """Get the top vertical limit coordinate of geobodies (via bbox).
    Args:
        rprops (list): List of regionprops object for each unique region of the model.
        (skimage.measure._regionprops._RegionProperties object)
        geo_data (gempy.data_management.InputData):
    Returns:
        (dict): Dict with node labels as keys and geobody top coordinates as values.
    """
    if geo_data is None:
        return {rprop.label: rprop.bbox[5] for rprop in rprops}
    else:
        return {rprop.label: rprop.bbox[5] * geo_data.extent[5] / geo_data.resolution[2] for rprop in rprops}