def METHOD_NAME():
    saved_env = dict(os.environ)
    class TestClass(spm.SPMCommand):
        pass
    # test without FORCE_SPMMCR, SPMMCRCMD set
    for varname in ["FORCE_SPMMCR", "SPMMCRCMD"]:
        try:
            del os.environ[varname]
        except KeyError:
            pass
    dc = TestClass()
    assert dc._use_mcr is None
    assert dc._matlab_cmd is None
    # test with only FORCE_SPMMCR set
    os.environ["FORCE_SPMMCR"] = "1"
    dc = TestClass()
    assert dc._use_mcr
    assert dc._matlab_cmd is None
    # test with both, FORCE_SPMMCR and SPMMCRCMD set
    os.environ["SPMMCRCMD"] = "spmcmd"
    dc = TestClass()
    assert dc._use_mcr
    assert dc._matlab_cmd == "spmcmd"
    # restore environment
    os.environ.clear()
    os.environ.update(saved_env)