def METHOD_NAME() -> None:
    code = """
    import six
    from enum import Enum, EnumMeta
    class FooMeta(EnumMeta):
        pass
    class Foo(six.with_metaclass(FooMeta, Enum)):  #@
        bar = 1
    """
    klass = astroid.extract_node(code)
    assert next(klass.ancestors()).name == "Enum"