def METHOD_NAME():
    res_li = []
    class Test:
        def fun1(self):
            res_li.append(1)
        def fun2(self):
            res_li.append(2)
    class Test2:
        def fun3(self):
            res_li.append(3)
        def fun4(self):
            res_li.append(4)
    Test.__module__ = "napari.test.sample"
    t1 = Test()
    t2 = Test2()
    e = EventEmitter(type_name="test")
    e.connect(t1.fun1)
    e.connect(t2.fun3)
    e()
    assert res_li == [1, 3]
    res_li = []
    e.connect(t1.fun2)
    e.connect(t2.fun4)
    e()
    assert res_li == [2, 1, 4, 3]