def METHOD_NAME(self):
    class Env:
        @classmethod
        def setter(cls, key, value):
            pass
        @classmethod
        def getter(cls, key, default):
            pass
    self.check_bad_define_environment(Env)
    class Env(MockEnvironment):
        scoped_function_for_session = "other"
    self.check_bad_define_environment(Env)
    class Env(MockEnvironment):
        def scoped_function_for_session(self):
            pass
    self.check_bad_define_environment(Env)