def METHOD_NAME():
    assert str(m.ClassWithUnscopedEnum.EMode.EFirstMode) == "EMode.EFirstMode"
    assert str(m.ClassWithUnscopedEnum.EFirstMode) == "EMode.EFirstMode"
    f = m.ClassWithUnscopedEnum.test_function
    first = m.ClassWithUnscopedEnum.EFirstMode
    second = m.ClassWithUnscopedEnum.ESecondMode
    assert f(first) == 1
    assert f(first) == f(first)
    assert not f(first) != f(first)
    assert f(first) != f(second)
    assert not f(first) == f(second)
    assert f(first) == int(f(first))
    assert not f(first) != int(f(first))
    assert f(first) != int(f(second))
    assert not f(first) == int(f(second))
    # noinspection PyDictCreation
    x = {f(first): 1, f(second): 2}
    x[f(first)] = 3
    x[f(second)] = 4
    # Hashing test
    assert str(x) == "{EMode.EFirstMode: 3, EMode.ESecondMode: 4}"