def METHOD_NAME():
    assert echo("foo") == "echo: foo"
    def uppercase(target, arg):
        return target(arg).upper()
    with Patch(get_defining_object(echo), "echo", uppercase):
        assert echo("foo") == "ECHO: FOO"
    assert echo("foo") == "echo: foo"