def normalize_globally(data, minimum=True):
    """ The simplest approach: normalize the whole dataset by the global min- 
    or maximum.

    *Parameters*
    ============================================================================
    data     array-like; the input data of arbitrary dimensionality
    minimum  boolean; if True, use the min, otherwise the max function
    ============================================================================

    *Returns*
    ============================================================================
    res      np.array; normalized version of input data
    ============================================================================
    """
    min_or_max = 'min' if minimum else 'max'
    m = data.__getattribute__(min_or_max)()
    return data / m
