def METHOD_NAME(summa_dim):
    # check environment variable for SUMMA
    env_summa_dim = env.summa_dim
    if env_summa_dim:
        assert int(env_summa_dim) == summa_dim, \
            'SUMMA_DIM has been set in the current environment and ' \
            'does not match with the value passed to this initialized'
    else:
        env.summa_dim = summa_dim