def _GetBounds(bbox, delta, M, N):
    """
    Returns bounds of object in global label image.

    Parameters
    ----------
    bbox : tuple
        Bounding box (min_row, min_col, max_row, max_col).
    delta : int
        Used to dilate nuclei and define cytoplasm region.
        Default value = 8.
    M : int
        X size of label image.
    N : int
        Y size of label image.

    Returns
    -------
    min_row : int
        Minum row of the region bounds.
    max_row : int
        Maximum row of the region bounds.
    min_col : int
        Minum column of the region bounds.
    max_col : int
        Maximum column of the region bounds.

    """
    min_row, min_col, max_row, max_col = bbox
    min_row_out = max(0, min_row - delta)
    max_row_out = min(M - 1, max_row + delta)
    min_col_out = max(0, min_col - delta)
    max_col_out = min(N - 1, max_col + delta)
    return min_row_out, max_row_out, min_col_out, max_col_out
