def METHOD_NAME(original_fixture):
    def _fixture(*args, **kargs):
        """Decorator to replace the original pytest.fixture."""
        def _decorate(func):
            if inspect.isgeneratorfunction(func):
                return original_fixture(*args, **kargs)(_fixture_generator_decorator(func))
            else:
                return original_fixture(*args, **kargs)(_fixture_func_decorator(func))
        # check if the pytest.fixture is directly called
        func = None
        if len(args) == 1 and callable(args[0]) and not kargs:
            func = args[0]
        elif len(kargs) == 1 and callable(list(kargs.values())[0]) and not args:
            func = list(kargs.values())[0]
        if func is not None:
            args = ()
            kargs = {}
            return _decorate(func)
        return _decorate
    return _fixture