def METHOD_NAME():
    class MyObj:
        pass
    def forward(**kwargs):
        return kwargs
    def test(name):
        to_match = {'attr1': 1, 'attr2': 2, 'attr3': 3}
        x = MyObj()
        x.myattr = name
        match to_match:
            case {x.myattr: dyn_match, **data}:
                return forward(dyn_match=dyn_match, **data)
    assert test('attr1') == {'dyn_match': 1, 'attr2': 2, 'attr3': 3}
    assert test('attr2') == {'dyn_match': 2, 'attr1': 1, 'attr3': 3}